From b272844547c4680b10cdd0a645384f1285e0a597 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 18 May 2005 02:08:00 +0000 Subject: * dir.c (glob_helper): get rid of using String. [ruby-dev:26180] * eval.c (ruby_options), win32/win32.c (NtInitialize): move argument intialization back. [ruby-dev:26180] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'win32/win32.c') diff --git a/win32/win32.c b/win32/win32.c index e55c0866ed..dc4d2848ee 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -421,6 +421,11 @@ NtInitialize(int *argc, char ***argv) WORD version; int ret; + // + // subvert cmd.exe's feeble attempt at command line parsing + // + *argc = make_cmdvector(GetCommandLine(), argv); + // // Now set up the correct time stuff // @@ -433,6 +438,11 @@ NtInitialize(int *argc, char ***argv) // Initialize Winsock StartSockets(); + +#ifdef _WIN32_WCE + // free commandline buffer + wce_FreeCommandLine(); +#endif } char * -- cgit v1.2.3