example: fix Win32 error-reporting code-path

This commit is contained in:
Erik Faye-Lund 2010-06-24 09:38:06 -07:00
parent 197f80010c
commit a70f77ad0c

View File

@ -67,7 +67,7 @@ void die(const char *fmt, ...)
#ifdef _CONSOLE
fprintf(stderr, "*** error: %s\n", temp);
#else
MessageBox(NULL, temp, mainWindowTitle, MB_OK | MB_ICONERROR);
MessageBox(NULL, temp, NULL, MB_OK | MB_ICONERROR);
#endif
exit(EXIT_FAILURE);