1
0
Fork 0

Fixed incorrect error message when memory could not be allocated

This commit is contained in:
Alexander Miloslavskiy 2018-11-02 00:45:33 +01:00 committed by Torusrxxx
parent 60c54ea83a
commit de678aec21
1 changed files with 3 additions and 3 deletions

View File

@ -43,9 +43,9 @@ void* emalloc(size_t size, const char* reason)
#endif //ENABLE_MEM_TRACE
if(!a)
{
wchar_t size[25];
swprintf_s(size, L"%p bytes", size);
MessageBoxW(0, L"Could not allocate memory (minidump will be created)", size, MB_ICONERROR);
wchar_t sizeString[25];
swprintf_s(sizeString, L"%p bytes", size);
MessageBoxW(0, L"Could not allocate memory (minidump will be created)", sizeString, MB_ICONERROR);
__debugbreak();
ExitProcess(1);
}