Commit 70d1136c authored by André Johansen's avatar André Johansen Committed by Alexandre Julliard

Added a dummy implementation of the _set_error_mode() function.

parent a9460b3d
...@@ -135,3 +135,32 @@ void MSVCRT_perror(const char* str) ...@@ -135,3 +135,32 @@ void MSVCRT_perror(const char* str)
{ {
_cprintf("%s: %s\n",str,MSVCRT_strerror(msvcrt_get_thread_data()->errno)); _cprintf("%s: %s\n",str,MSVCRT_strerror(msvcrt_get_thread_data()->errno));
} }
/******************************************************************************
* _set_error_mode (MSVCRT.@)
*
* Set the error mode, which describes where the C run-time writes error
* messages.
*
* PARAMS
* mode - the new error mode
*
* RETURNS
* The old error mode.
*
* TODO
* This function does not have a proper implementation; the error mode is
* never used.
*/
int _set_error_mode(int mode)
{
static int current_mode = _OUT_TO_DEFAULT;
const int old = current_mode;
if ( _REPORT_ERRMODE != mode ) {
current_mode = mode;
FIXME("dummy implementation (old mode: %d, new mode: %d)\n",
old, mode);
}
return old;
}
...@@ -423,7 +423,7 @@ ...@@ -423,7 +423,7 @@
@ cdecl _scalb( double long) @ cdecl _scalb( double long)
@ cdecl _searchenv(str str ptr) @ cdecl _searchenv(str str ptr)
@ stdcall -i386 _seh_longjmp_unwind(ptr) @ stdcall -i386 _seh_longjmp_unwind(ptr)
@ stub _set_error_mode #(long) @ stdcall _set_error_mode(long)
@ stub _set_sbh_threshold #(long) @ stub _set_sbh_threshold #(long)
@ stub _seterrormode #(long) @ stub _seterrormode #(long)
@ cdecl -register -i386 _setjmp(ptr) _MSVCRT__setjmp @ cdecl -register -i386 _setjmp(ptr) _MSVCRT__setjmp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment