mirror of
https://github.com/UzixLS/KernelEx.git
synced 2025-07-19 07:21:20 +03:00
import KernelEx-4.5.1
This commit is contained in:
34
kexcrt/msvc/msvc8.c
Executable file
34
kexcrt/msvc/msvc8.c
Executable file
@ -0,0 +1,34 @@
|
||||
#include <windows.h>
|
||||
|
||||
#ifndef STATUS_INVALID_CRUNTIME_PARAMETER
|
||||
#define STATUS_INVALID_CRUNTIME_PARAMETER 0xC0000417
|
||||
#endif
|
||||
|
||||
__declspec(noreturn) void _invoke_watson(
|
||||
const wchar_t *pszExpression,
|
||||
const wchar_t *pszFunction,
|
||||
const wchar_t *pszFile,
|
||||
unsigned int nLine,
|
||||
void* pReserved
|
||||
)
|
||||
{
|
||||
MessageBox(NULL, "Invalid argument passed into a CRT function", "CRT error", MB_OK | MB_ICONERROR);
|
||||
RaiseException( STATUS_INVALID_CRUNTIME_PARAMETER, EXCEPTION_NONCONTINUABLE, 0, NULL );
|
||||
}
|
||||
|
||||
void _invalid_parameter(
|
||||
const wchar_t *pszExpression,
|
||||
const wchar_t *pszFunction,
|
||||
const wchar_t *pszFile,
|
||||
unsigned int nLine,
|
||||
void* pReserved
|
||||
)
|
||||
{
|
||||
_invoke_watson(pszExpression, pszFunction, pszFile, nLine, pReserved);
|
||||
}
|
||||
|
||||
void _invalid_parameter_noinfo(void)
|
||||
{
|
||||
_invalid_parameter(NULL, NULL, NULL, 0, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user