Skip to content

Commit b5badb3

Browse files
committed
Show the out of memory message for any module
1 parent 1bd0ff6 commit b5badb3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Client/loader/CInstallManager.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,10 +432,10 @@ SString CInstallManager::_ShowCrashFailDialog()
432432
strMessage += strReason;
433433
}
434434

435-
const SString moduleName = GetApplicationSetting("diagnostics", "last-crash-module");
436-
const int exceptionCode = GetApplicationSettingInt("diagnostics", "last-crash-code");
435+
// const SString moduleName = GetApplicationSetting("diagnostics", "last-crash-module");
436+
const int exceptionCode = GetApplicationSettingInt("diagnostics", "last-crash-code");
437437

438-
if (exceptionCode == CUSTOM_EXCEPTION_CODE_OOM && moduleName.EndsWithI("\\kernelbase.dll"))
438+
if (exceptionCode == CUSTOM_EXCEPTION_CODE_OOM)
439439
{
440440
strMessage += '\n';
441441
strMessage += _("** Out of memory - this crash was caused by insufficient free or fragmented memory. **");

0 commit comments

Comments
 (0)