diff --git a/plugins/GSdx/GS.cpp b/plugins/GSdx/GS.cpp index d5852e2f62..7bb997104a 100644 --- a/plugins/GSdx/GS.cpp +++ b/plugins/GSdx/GS.cpp @@ -364,7 +364,7 @@ EXPORT_C GSvsync(int field) EXPORT_C_(uint32) GSmakeSnapshot(char* path) { string str = string(path); - if (str[str.length()] != '\\') + if (str[str.length() - 1] != '\\') str = str + "\\"; return s_gs->MakeSnapshot(str + "gsdx"); } @@ -627,7 +627,6 @@ EXPORT_C GSReplay(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow) fclose(fp); } - PostQuitMessage(0); } EXPORT_C GSBenchmark(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int nCmdShow)