summaryrefslogtreecommitdiffstats
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
commit44b0d56c4e75da3ba4c4250befd68b873ed8e073 (patch)
tree62dee67cb641c620eb2d3c1ad356875944d0c8e3 /win32
parente620587b3737bb7ffeb7a63e9bc3d722f5db1baa (diff)
downloadruby-44b0d56c4e75da3ba4c4250befd68b873ed8e073.tar.gz
ruby-44b0d56c4e75da3ba4c4250befd68b873ed8e073.tar.xz
ruby-44b0d56c4e75da3ba4c4250befd68b873ed8e073.zip
* 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: http://svn.ruby-lang.org/repos/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 33233364e..13c45005d 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()