From 652e875db2358a590f47407bb32e690b0914bb30 Mon Sep 17 00:00:00 2001 From: baldurk Date: Sun, 23 Nov 2014 15:00:12 +0000 Subject: [PATCH] Bugfix - function doesn't take wchar_t* any more! --- renderdoc/os/win32/win32_process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoc/os/win32/win32_process.cpp b/renderdoc/os/win32/win32_process.cpp index 231f00b7d..d3095c4b3 100644 --- a/renderdoc/os/win32/win32_process.cpp +++ b/renderdoc/os/win32/win32_process.cpp @@ -327,7 +327,7 @@ uint32_t Process::InjectIntoProcess(uint32_t pid, const char *logfile, const Cap // safe to cast away the const as we know these functions don't modify the parameters if(logfile != NULL) - InjectFunctionCall(hProcess, loc, "RENDERDOC_SetLogFile", (void *)wlogfile.c_str(), (wlogfile.length()+1)*sizeof(wchar_t)); + InjectFunctionCall(hProcess, loc, "RENDERDOC_SetLogFile", (void *)logfile, strlen(logfile)+1); if(opts != NULL) InjectFunctionCall(hProcess, loc, "RENDERDOC_SetCaptureOptions", (CaptureOptions *)opts, sizeof(CaptureOptions));