Error parser
| 584 | |
| 585 | // Error parser |
| 586 | bool CNM_App::ParseErrorCode(DWORD dwErrorCode) |
| 587 | { |
| 588 | auto szMessage = std::string(""); |
| 589 | |
| 590 | switch (dwErrorCode) |
| 591 | { |
| 592 | case INIT_ERR_SUCCESS: |
| 593 | { |
| 594 | szMessage = xorstr("Initilization succesfully completed!").crypt_get(); |
| 595 | } break; |
| 596 | |
| 597 | default: |
| 598 | { |
| 599 | szMessage = m_nmFunctions->CreateString(xorstr("Init - Unknown error handled! App: %d(%s): Error ID: %u").crypt_get(), |
| 600 | m_nmData->GetAppType(), GetAppTypeName(m_nmData->GetAppType()).c_str(), dwErrorCode); |
| 601 | } break; |
| 602 | } |
| 603 | |
| 604 | DEBUG_LOG(LL_ERR, szMessage.c_str()); |
| 605 | m_nmFunctions->ServiceMessageBox2(xorstr("NoMercy Error | Init").crypt_get(), szMessage.c_str(), MB_ICONERROR); |
| 606 | |
| 607 | return true; |
| 608 | } |
| 609 | |
| 610 | // Close handler |
| 611 | void CNM_App::OnCloseRequest(EExitErrorCodes ullErrorCode, DWORD dwSystemErrorCode, LPVOID lpParam) |
nothing calls this directly
no test coverage detected