mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 22:25:55 +00:00
UTF-8 bugfix (leave room for null terminator)
This commit is contained in:
@@ -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