From f2861448ab16ae06ffdc8560e9f50d6c192c0623 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Sun, 4 Jul 2010 20:06:18 -0700 Subject: [PATCH] Fix bug in win32 command-line arg processing. --- src/rt/rust.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rt/rust.cpp b/src/rt/rust.cpp index 8c725bfbc07..91476bed4c4 100644 --- a/src/rt/rust.cpp +++ b/src/rt/rust.cpp @@ -167,7 +167,7 @@ command_line_args #if defined(__WIN32__) LPCWSTR cmdline = GetCommandLineW(); LPWSTR *wargv = CommandLineToArgvW(cmdline, &argc); - dom.win32_require("CommandLineToArgvW", argv != NULL); + dom.win32_require("CommandLineToArgvW", wargv != NULL); argv = (char **) dom.malloc(sizeof(char*) * argc); for (int i = 0; i < argc; ++i) { int n_chars = WideCharToMultiByte(CP_UTF8, 0, wargv[i], -1,