From 20f3ea3f6c084733dfbc76f8a0efe1335ce66428 Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 24 Feb 2006 02:19:44 +0000 Subject: [PATCH] * win32/win32.c (NtInitialize): need to set a handler for VC++8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ win32/win32.c | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9bb2c4795a..cebbac2627 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Feb 24 11:17:45 2006 NAKAMURA Usaku + + * win32/win32.c (NtInitialize): need to set a handler for VC++8. + Thu Feb 23 22:39:59 2006 Hirokazu Yamamoto * bcc32/Makefile.sub: use borlndmm.dll if possible. bcc32's RTL internal 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 //