diff options
| author | Graydon Hoare <[email protected]> | 2010-07-04 20:06:18 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-07-04 20:06:18 -0700 |
| commit | f2861448ab16ae06ffdc8560e9f50d6c192c0623 (patch) | |
| tree | 17e0dc5be1c5b070ee5fdce778f6d68c23cdc5b2 /src/rt | |
| parent | XFAIL the remainder as until pwalton has a go at the typechecker. Branch is o... (diff) | |
| download | rust-f2861448ab16ae06ffdc8560e9f50d6c192c0623.tar.xz rust-f2861448ab16ae06ffdc8560e9f50d6c192c0623.zip | |
Fix bug in win32 command-line arg processing.
Diffstat (limited to 'src/rt')
| -rw-r--r-- | src/rt/rust.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust.cpp b/src/rt/rust.cpp index 8c725bfb..91476bed 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, |