ReactOS 0.4.15-dev-8219-ge8b88cf
_invalid_parameter.c File Reference
#include <precomp.h>
Include dependency graph for _invalid_parameter.c:

Go to the source code of this file.

Functions

void __cdecl _invalid_parameter (const wchar_t *expr, const wchar_t *func, const wchar_t *file, unsigned int line, uintptr_t arg)
 
_invalid_parameter_handler CDECL _get_invalid_parameter_handler (void)
 
_invalid_parameter_handler CDECL _set_invalid_parameter_handler (_invalid_parameter_handler handler)
 

Variables

static _invalid_parameter_handler invalid_parameter_handler = NULL
 

Function Documentation

◆ _get_invalid_parameter_handler()

_invalid_parameter_handler CDECL _get_invalid_parameter_handler ( void  )

Definition at line 36 of file _invalid_parameter.c.

37{
38 TRACE("\n");
40}
static _invalid_parameter_handler invalid_parameter_handler
#define TRACE(s)
Definition: solgame.cpp:4

◆ _invalid_parameter()

void __cdecl _invalid_parameter ( const wchar_t expr,
const wchar_t func,
const wchar_t file,
unsigned int  line,
uintptr_t  arg 
)

Definition at line 22 of file _invalid_parameter.c.

24{
26 else
27 {
28 ERR( "%s:%u %s: %s %lx\n", debugstr_w(file), line, debugstr_w(func), debugstr_w(expr), arg );
29#if _MSVCR_VER > 0 // FIXME: possible improvement: use a global variable in the DLL
31#endif
32 }
33}
#define ERR(fmt,...)
Definition: debug.h:113
#define NULL
Definition: types.h:112
VOID WINAPI RaiseException(_In_ DWORD dwExceptionCode, _In_ DWORD dwExceptionFlags, _In_ DWORD nNumberOfArguments, _In_opt_ const ULONG_PTR *lpArguments)
Definition: except.c:700
GLenum func
Definition: glext.h:6028
#define debugstr_w
Definition: kernel32.h:32
#define STATUS_INVALID_CRUNTIME_PARAMETER
Definition: ntstatus.h:959
Definition: query.h:87
Definition: fci.c:127
Definition: parser.c:49
#define EXCEPTION_NONCONTINUABLE
Definition: stubs.h:23

Referenced by _fsopen(), _tasctime_s(), localtime_s(), and rand_s().

◆ _set_invalid_parameter_handler()

_invalid_parameter_handler CDECL _set_invalid_parameter_handler ( _invalid_parameter_handler  handler)

Definition at line 43 of file _invalid_parameter.c.

45{
47
48 TRACE("(%p)\n", handler);
49
51 return old;
52}
UINT(* handler)(MSIPACKAGE *)
Definition: action.c:7482
void(__cdecl * _invalid_parameter_handler)(const wchar_t *, const wchar_t *, const wchar_t *, unsigned int, uintptr_t)
Definition: stdlib.h:125

Variable Documentation

◆ invalid_parameter_handler

_invalid_parameter_handler invalid_parameter_handler = NULL
static