about summary refs log tree commit diff
path: root/src/rt/rust.cpp
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2010-07-04 20:06:18 -0700
committerGraydon Hoare <graydon@mozilla.com>2010-07-04 20:06:18 -0700
commitf2861448ab16ae06ffdc8560e9f50d6c192c0623 (patch)
tree17e0dc5be1c5b070ee5fdce778f6d68c23cdc5b2 /src/rt/rust.cpp
parent7f01af9555006b269c68843b274edd3ee7b99d36 (diff)
downloadrust-f2861448ab16ae06ffdc8560e9f50d6c192c0623.tar.gz
rust-f2861448ab16ae06ffdc8560e9f50d6c192c0623.zip
Fix bug in win32 command-line arg processing.
Diffstat (limited to 'src/rt/rust.cpp')
-rw-r--r--src/rt/rust.cpp2
1 files changed, 1 insertions, 1 deletions
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,