placeholderName now shows on failed to create hwnd screen instead of "Hypercube"

This commit is contained in:
scottbeebiwan
2018-07-07 01:01:51 -07:00
parent dae6dd5390
commit 341866b8bb

View File

@@ -1634,7 +1634,7 @@ int main(int argc, char** argv) {
if(hwndMain == NULL)
{
MessageBox(NULL, "Failed to create HWND","Hypercube Crash", MB_OK);
MessageBox(NULL, "Failed to create HWND",placeholderName+" Crash", MB_OK);
return 0;
}
SendMessage(hwndMain, WM_SETICON, ICON_BIG,(LPARAM)LoadImage(GetModuleHandle(NULL), (LPCSTR)MAKEINTRESOURCEW(IDI_ICON1), IMAGE_ICON, 0, 0, LR_DEFAULTCOLOR | LR_DEFAULTSIZE));