reverted previous change, which introduced a regression

metadata
Wenzel Jakob 2012-10-02 18:21:10 -04:00
parent 72f93cf39c
commit 874e1fa086
1 changed files with 1 additions and 1 deletions

View File

@ -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(TCHAR));
const DWORD nSize = static_cast<DWORD>(sizeof(lpFilename)/sizeof(WCHAR));
if (GetModuleFileNameW(NULL, lpFilename, nSize) != 0 &&
GetLastError() == ERROR_SUCCESS)
prependPath(fs::path(lpFilename).parent_path());