From a41f80cfcaba47b312224605c4f10660af316490 Mon Sep 17 00:00:00 2001 From: gabest11 Date: Mon, 3 Aug 2009 11:05:24 +0000 Subject: [PATCH] memcpy on PcsxConfig made pcsx2 crash upon exiting, when the string members were deallocated, I guess they were added later. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1601 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/windows/WinMain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2/windows/WinMain.cpp b/pcsx2/windows/WinMain.cpp index c3e0241878..9451239bf8 100644 --- a/pcsx2/windows/WinMain.cpp +++ b/pcsx2/windows/WinMain.cpp @@ -195,7 +195,7 @@ void WinRun() // Load the command line overrides for plugins. // Back up the user's preferences in winConfig. - memcpy( &winConfig, &Config, sizeof( PcsxConfig ) ); + winConfig = Config; // don't use memcpy _doPluginOverride( "GS", g_Startup.gsdll, Config.Plugins.GS ); _doPluginOverride( "CDVD", g_Startup.cdvddll, Config.Plugins.CDVD );