From 479ef45aec6ef6a485a1292ac744ca5b6229c2e6 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 30 Mar 2014 00:08:16 -0400 Subject: [PATCH] Fix a case where m_hdd_file is passed to m_file uninitialized. Due to the way initializations work in C++, despite the order of the initializations in the initialization list, it will actually do the initializing in the order the class variables are defined. --- rpcs3/Emu/HDD/HDD.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/HDD/HDD.h b/rpcs3/Emu/HDD/HDD.h index ba7c86e0ed..2a6afe07dc 100644 --- a/rpcs3/Emu/HDD/HDD.h +++ b/rpcs3/Emu/HDD/HDD.h @@ -423,11 +423,11 @@ public: class vfsHDD : public vfsFileBase { vfsHDD_Hdr m_hdd_info; + vfsLocalFile m_hdd_file; + const wxString& m_hdd_path; vfsHDD_Entry m_cur_dir; u64 m_cur_dir_block; vfsHDDFile m_file; - vfsLocalFile m_hdd_file; - const wxString& m_hdd_path; public: vfsHDD(vfsDevice* device, const wxString& hdd_path)