Skip to content

Commit 01e5caf

Browse files
torusrxxxmrexodia
authored andcommitted
removed upper part check in NTSTATUS
1 parent 79e3352 commit 01e5caf

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/dbg/formatfunctions.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -81,19 +81,6 @@ void FormatFunctions::Init()
8181
{
8282
std::vector<wchar_t> helpMessage(destCount);
8383
String errName = ErrorCodeToName((unsigned int)code);
84-
#ifdef _WIN64
85-
if((code >> 32) != 0) //Data in high part: not an error code
86-
{
87-
errName = StringUtils::sprintf("%p", code);
88-
if(destCount < errName.size() + 1)
89-
return FORMAT_BUFFER_TOO_SMALL;
90-
else
91-
{
92-
memcpy(dest, errName.c_str(), errName.size() + 1);
93-
return FORMAT_SUCCESS;
94-
}
95-
}
96-
#endif //_WIN64
9784
if(errName.size() == 0)
9885
errName = StringUtils::sprintf("%08X", DWORD(code));
9986
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)