mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
core: Mop up Windows breakage
This commit is contained in:
parent
d191e89d9e
commit
2d33e308ac
@ -894,8 +894,8 @@ pub fn real_args() -> ~[~str] {
|
||||
pub fn real_args() -> ~[~str] {
|
||||
let mut nArgs: c_int = 0;
|
||||
let lpArgCount = ptr::to_mut_unsafe_ptr(&mut nArgs);
|
||||
let lpCmdLine = GetCommandLineW();
|
||||
let szArgList = CommandLineToArgvW(lpCmdLine, lpArgCount);
|
||||
let lpCmdLine = unsafe { GetCommandLineW() };
|
||||
let szArgList = unsafe { CommandLineToArgvW(lpCmdLine, lpArgCount) };
|
||||
|
||||
let mut args = ~[];
|
||||
for uint::range(0, nArgs as uint) |i| {
|
||||
|
Loading…
Reference in New Issue
Block a user