summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-18 14:39:27 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-18 14:39:27 +0000
commita5f61654e969e2f8727e040bea24a3006acd6134 (patch)
tree62dee67cb641c620eb2d3c1ad356875944d0c8e3 /win32
parent2866bd642f355acf22dc21fb6fe0e861717d105d (diff)
* 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
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 33233364e6..13c45005df 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -366,6 +366,11 @@ NtInitialize(int *argc, char ***argv)
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()