Skip to content

Commit 3116b3d

Browse files
torusrxxxmrexodia
authored andcommitted
fixed NTSTATUS name
1 parent 01e5caf commit 3116b3d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dbg/commands/cmd-analysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ bool cbDebugDownloadSymbol(int argc, char* argv[])
179179
wchar_t wszModulePath[MAX_PATH] = L"";
180180
if(!GetModuleFileNameExW(fdProcessInfo->hProcess, (HMODULE)modbase, wszModulePath, MAX_PATH))
181181
{
182-
dputs(QT_TRANSLATE_NOOP("DBG", "GetModuleFileNameExA failed!"));
182+
dputs(QT_TRANSLATE_NOOP("DBG", "GetModuleFileNameExW failed!"));
183183
return false;
184184
}
185185
wchar_t szOldSearchPath[MAX_PATH] = L"";

src/dbg/formatfunctions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void FormatFunctions::Init()
8080
Register("ntstatus", [](char* dest, size_t destCount, int argc, char* argv[], duint code, void* userdata)
8181
{
8282
std::vector<wchar_t> helpMessage(destCount);
83-
String errName = ErrorCodeToName((unsigned int)code);
83+
String errName = NtStatusCodeToName((unsigned int)code);
8484
if(errName.size() == 0)
8585
errName = StringUtils::sprintf("%08X", DWORD(code));
8686
DWORD success = FormatMessageW(FORMAT_MESSAGE_FROM_HMODULE | FORMAT_MESSAGE_IGNORE_INSERTS, GetModuleHandleW(L"ntdll.dll"), DWORD(code), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), helpMessage.data(), DWORD(destCount), NULL);

0 commit comments

Comments
 (0)