mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-15 02:11:22 +00:00
UTF-8 bugfix (leave room for null terminator)
This commit is contained in:
1 parent
72b8725c69
commit
46c70e6f69
1 file changed
+1
-1
@@ -268,7 +268,7 @@ int WINAPI wWinMain(_In_ HINSTANCE hInst,
|
||||
argv[i] = new char[len*4 + 1];
|
||||
argv[i][len*4] = 0;
|
||||
|
||||
WideCharToMultiByte(CP_UTF8, 0, wargv[i], -1, &argv[i][0], (int)len, NULL, NULL);
|
||||
WideCharToMultiByte(CP_UTF8, 0, wargv[i], -1, &argv[i][0], (int)len+1, NULL, NULL);
|
||||
}
|
||||
|
||||
hInstance = hInst;
|
||||
|
||||
Reference in new issue
Block a user