From a5f61654e969e2f8727e040bea24a3006acd6134 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 18 May 2005 14:39:27 +0000 Subject: * dir.c (glob_helper): get rid of using String. [ruby-dev:26180] * dir.c (push_braces): should skip balanced braces. * 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/branches/ruby_1_8@8480 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 33233364e6..13c45005df 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -365,6 +365,11 @@ NtInitialize(int *argc, char ***argv) WORD version; int ret; + // + // subvert cmd.exe's feeble attempt at command line parsing + // + *argc = rb_w32_cmdvector(GetCommandLine(), argv); + // // Now set up the correct time stuff // @@ -373,6 +378,11 @@ NtInitialize(int *argc, char ***argv) // Initialize Winsock StartSockets(); + +#ifdef _WIN32_WCE + // free commandline buffer + wce_FreeCommandLine(); +#endif } char *getlogin() -- cgit v1.2.3