argument size should be specified in TCHARs according to MSDN
parent
de9f47ce5a
commit
17ea59e43f
|
@ -29,7 +29,7 @@ FileResolver::FileResolver() {
|
|||
MTS_AUTORELEASE_END()
|
||||
#elif defined(__WINDOWS__)
|
||||
WCHAR lpFilename[MAX_PATH];
|
||||
const DWORD nSize = static_cast<DWORD>(sizeof(lpFilename)/sizeof(WCHAR));
|
||||
const DWORD nSize = static_cast<DWORD>(sizeof(lpFilename)/sizeof(TCHAR));
|
||||
if (GetModuleFileNameW(NULL, lpFilename, nSize) != 0 &&
|
||||
GetLastError() == ERROR_SUCCESS)
|
||||
prependPath(fs::path(lpFilename).parent_path());
|
||||
|
|
Loading…
Reference in New Issue