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

This commit is contained in:
Uwe Bonnes 2002-03-25 20:56:20 +00:00 committed by Alexandre Julliard
parent d62d41cdf2
commit d82f35eda1
1 changed files with 4 additions and 2 deletions

View File

@ -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 );
}
/*********************************************************************