[PATCH 2/2] msvcrt: Use the _set_error_mode value to switch between a dialogbox and stderr for C runtime messages
Alexandre Julliard
julliard at winehq.org
Fri Jan 28 10:50:15 CST 2011
Detlef Riekenberg <wine.dev at web.de> writes:
> @@ -134,8 +135,9 @@ static void DoMessageBox(LPCSTR lead, LPCSTR message)
> void CDECL _amsg_exit(int errnum)
> {
> TRACE("(%d)\n", errnum);
> - /* FIXME: text for the error number. */
> - if (MSVCRT_app_type == 2)
> +
> + if ((MSVCRT_error_mode == MSVCRT__OUT_TO_MSGBOX) ||
> + ((MSVCRT_error_mode == MSVCRT__OUT_TO_DEFAULT) && (MSVCRT_app_type != 1)))
If you want to change the app type check that should be a separate
patch, with its own justification.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list