placeholderName now shows on failed to create hwnd screen instead of "Hypercube"
This commit is contained in:
2
main.cpp
2
main.cpp
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user