summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-18 02:08:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-05-18 02:08:00 +0000
commitb272844547c4680b10cdd0a645384f1285e0a597 (patch)
tree7b41cb19a3365263e90934da28aa9572011b1270 /win32
parentaab01c2bc991c7f887ae5117afa43f4be2f4e7c7 (diff)
* 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
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 e55c0866ed..dc4d2848ee 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -422,6 +422,11 @@ NtInitialize(int *argc, char ***argv)
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 *