Set the current directory earlier in the initialization process
This commit is contained in:
parent
3a30af1dc7
commit
0e5e31aedc
|
@ -78,6 +78,9 @@ static const wchar_t* InitializeUserDirectory()
|
|||
|
||||
*backslash = L'\0';
|
||||
|
||||
// Set the current directory to the application directory
|
||||
SetCurrentDirectoryW(szUserDirectory);
|
||||
|
||||
// Extract the file name of the x64dbg executable (without extension)
|
||||
auto fileNameWithoutExtension = backslash + 1;
|
||||
auto period = wcschr(fileNameWithoutExtension, L'.');
|
||||
|
|
|
@ -752,7 +752,6 @@ extern "C" DLL_EXPORT const char* _dbg_dbginit()
|
|||
}
|
||||
}
|
||||
dprintf(QT_TRANSLATE_NOOP("DBG", "Symbol Path: %s\n"), szSymbolCachePath);
|
||||
SetCurrentDirectoryW(StringUtils::Utf8ToUtf16(szProgramDir).c_str());
|
||||
dputs(QT_TRANSLATE_NOOP("DBG", "Allocating message stack..."));
|
||||
gMsgStack = MsgAllocStack();
|
||||
if(!gMsgStack)
|
||||
|
|
Loading…
Reference in New Issue