diff options
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c index 973a795c46..3494461f32 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -410,6 +410,13 @@ init_env(void) static void init_stdhandle(void); +#if _MSC_VER >= 1400 +static void invalid_parameter(const wchar_t *expr, const wchar_t *func, const wchar_t *file, unsigned int line, uintptr_t dummy) +{ + // nothing to do +} +#endif + // // Initialization stuff // @@ -420,6 +427,10 @@ NtInitialize(int *argc, char ***argv) WORD version; int ret; +#if _MSC_VER >= 1400 + _set_invalid_parameter_handler(invalid_parameter); +#endif + // // subvert cmd.exe's feeble attempt at command line parsing // |