Commit d82f35ed authored by Uwe Bonnes's avatar Uwe Bonnes Committed by Alexandre Julliard

__[x|]getmainargs: Accept NULL new_mode argument.

parent d62d41cd
......@@ -253,7 +253,8 @@ void __getmainargs(int *argc, char** *argv, char** *envp,
*argc = MSVCRT___argc;
*argv = MSVCRT___argv;
*envp = MSVCRT__environ;
MSVCRT__set_new_mode( *new_mode );
if (new_mode)
MSVCRT__set_new_mode( *new_mode );
}
/*********************************************************************
......@@ -266,7 +267,8 @@ void __wgetmainargs(int *argc, WCHAR** *wargv, WCHAR** *wenvp,
*argc = MSVCRT___argc;
*wargv = MSVCRT___wargv;
*wenvp = MSVCRT__wenviron;
MSVCRT__set_new_mode( *new_mode );
if (new_mode)
MSVCRT__set_new_mode( *new_mode );
}
/*********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment