example: fix Win32 error-reporting code-path
This commit is contained in:
parent
197f80010c
commit
a70f77ad0c
@ -67,7 +67,7 @@ void die(const char *fmt, ...)
|
|||||||
#ifdef _CONSOLE
|
#ifdef _CONSOLE
|
||||||
fprintf(stderr, "*** error: %s\n", temp);
|
fprintf(stderr, "*** error: %s\n", temp);
|
||||||
#else
|
#else
|
||||||
MessageBox(NULL, temp, mainWindowTitle, MB_OK | MB_ICONERROR);
|
MessageBox(NULL, temp, NULL, MB_OK | MB_ICONERROR);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user