diff --git a/ChangeLog b/ChangeLog index af65a88bb3..6f0859e78d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Apr 22 20:58:00 2003 Takaaki Uematsu + + * ruby.c: don't call VirtualQuery in ruby_init_loadpath() + on mswince. + Tue Apr 22 19:08:53 2003 Nobuyoshi Nakada * marshal.c (save_mantissa, load_mantissa): for interoperability diff --git a/ruby.c b/ruby.c index 4f25fc49c1..b7529b09b4 100644 --- a/ruby.c +++ b/ruby.c @@ -17,6 +17,7 @@ #endif #ifdef _WIN32_WCE #include +#include "wince.h" #endif #include "ruby.h" #include "dln.h" @@ -241,9 +242,11 @@ ruby_init_loadpath() HMODULE libruby = NULL; MEMORY_BASIC_INFORMATION m; +#ifndef _WIN32_WCE memset(&m, 0, sizeof(m)); if (VirtualQuery(ruby_init_loadpath, &m, sizeof(m)) && m.State == MEM_COMMIT) libruby = (HMODULE)m.AllocationBase; +#endif GetModuleFileName(libruby, libpath, sizeof libpath); #elif defined(DJGPP) extern char *__dos_argv0;