We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d191e89 commit 2d33e30Copy full SHA for 2d33e30
src/libcore/os.rs
@@ -894,8 +894,8 @@ pub fn real_args() -> ~[~str] {
894
pub fn real_args() -> ~[~str] {
895
let mut nArgs: c_int = 0;
896
let lpArgCount = ptr::to_mut_unsafe_ptr(&mut nArgs);
897
- let lpCmdLine = GetCommandLineW();
898
- let szArgList = CommandLineToArgvW(lpCmdLine, lpArgCount);
+ let lpCmdLine = unsafe { GetCommandLineW() };
+ let szArgList = unsafe { CommandLineToArgvW(lpCmdLine, lpArgCount) };
899
900
let mut args = ~[];
901
for uint::range(0, nArgs as uint) |i| {
0 commit comments