From c1e8df576c35b1683a921993fa7b000f77d43ec4 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 31 Aug 2015 17:23:39 +0200 Subject: [PATCH] Compile fix --- renderdoccmd/renderdoccmd_win32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdoccmd/renderdoccmd_win32.cpp b/renderdoccmd/renderdoccmd_win32.cpp index 47a7595bb..2d6c3167e 100644 --- a/renderdoccmd/renderdoccmd_win32.cpp +++ b/renderdoccmd/renderdoccmd_win32.cpp @@ -307,7 +307,7 @@ int WINAPI wWinMain(_In_ HINSTANCE hInst, { wchar_t *conv = new wchar_t[originalpath.size()+1]; - MultiByteToWideChar(CP_UTF8, 0, originalpath.c_str(), -1, conv, originalpath.size()+1); + MultiByteToWideChar(CP_UTF8, 0, originalpath.c_str(), -1, conv, int(originalpath.size()+1)); wide_path = conv; }