Skip to content

Commit 2d33e30

Browse files
committed
core: Mop up Windows breakage
1 parent d191e89 commit 2d33e30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/os.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,8 +894,8 @@ pub fn real_args() -> ~[~str] {
894894
pub fn real_args() -> ~[~str] {
895895
let mut nArgs: c_int = 0;
896896
let lpArgCount = ptr::to_mut_unsafe_ptr(&mut nArgs);
897-
let lpCmdLine = GetCommandLineW();
898-
let szArgList = CommandLineToArgvW(lpCmdLine, lpArgCount);
897+
let lpCmdLine = unsafe { GetCommandLineW() };
898+
let szArgList = unsafe { CommandLineToArgvW(lpCmdLine, lpArgCount) };
899899

900900
let mut args = ~[];
901901
for uint::range(0, nArgs as uint) |i| {

0 commit comments

Comments
 (0)