GSdx: Force the plugin to terminate via PostQuitMessage() when running GSReplay (fixes bug where GSdx would remain loaded in the background indefinitely).

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1923 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
Jake.Stine 2009-09-28 11:13:40 +00:00
parent c97498d1f6
commit 93d4f5a39c
1 changed files with 2 additions and 1 deletions

View File

@ -562,11 +562,11 @@ EXPORT_C GSReplay(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow)
while( LoopDatPacket_Thingamajig(hWnd, regs, buff, fp, start) ) ;
GSclose();
GSshutdown();
fclose(fp);
}
PostQuitMessage(0);
}
EXPORT_C GSBenchmark(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow)
@ -770,6 +770,7 @@ EXPORT_C GSBenchmark(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow
//
fclose(file);
PostQuitMessage(0);
}
#endif