Compile fix for official release builds. Didn't show up in nightlies!

This commit is contained in:
baldurk
2016-04-25 23:40:31 +02:00
parent c6145ff2db
commit cdd7ab2487
+1 -3
View File
@@ -70,8 +70,6 @@ class CrashHandler : public ICrashHandler
wchar_t radpath[MAX_PATH] = {0};
GetModuleFileNameW(GetModuleHandleA("renderdoc.dll"), radpath, MAX_PATH-1);
size_t len = wcslen(radpath);
wchar_t *slash = wcsrchr(radpath, L'\\');
if(slash)
@@ -101,7 +99,7 @@ class CrashHandler : public ICrashHandler
CreateProcessW(NULL, paramsAlloc, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi);
DWORD res = WaitForSingleObject(waitEvent, 2000);
WaitForSingleObject(waitEvent, 2000);
CloseHandle(waitEvent);
}