From cdd7ab2487eea9b9b27f28f68f365a507fb68586 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 25 Apr 2016 23:40:31 +0200 Subject: [PATCH] Compile fix for official release builds. Didn't show up in nightlies! --- renderdoc/core/crash_handler.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/renderdoc/core/crash_handler.h b/renderdoc/core/crash_handler.h index f55a79c493..fd1ed86344 100644 --- a/renderdoc/core/crash_handler.h +++ b/renderdoc/core/crash_handler.h @@ -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); }