From 658679876ef6b55f19e9f5828c723b478bd339fd Mon Sep 17 00:00:00 2001 From: "XTra.KrazzY" Date: Fri, 6 Mar 2009 17:01:27 +0000 Subject: [PATCH] Fixed DX9 window close shutdown. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2569 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoDX9/Src/EmuWindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Plugins/Plugin_VideoDX9/Src/EmuWindow.cpp b/Source/Plugins/Plugin_VideoDX9/Src/EmuWindow.cpp index de727aa40f..f9495cea44 100644 --- a/Source/Plugins/Plugin_VideoDX9/Src/EmuWindow.cpp +++ b/Source/Plugins/Plugin_VideoDX9/Src/EmuWindow.cpp @@ -52,7 +52,9 @@ namespace EmuWindow break; case WM_CLOSE: - exit(0); + Shutdown(); + // Simple hack to easily exit without stopping. Hope to fix the stopping errors soon. + ExitProcess(0); return 0; case WM_DESTROY: