Fixed __GetMainArgs.

This commit is contained in:
Alexandre Julliard 2001-02-20 01:56:46 +00:00
parent 0ee5f8c628
commit 91ab1208c4
2 changed files with 14 additions and 1 deletions

View File

@ -30,7 +30,7 @@ debug_channels (crtdll)
@ forward _CItanh msvcrt._CItanh
@ forward _HUGE_dll msvcrt._HUGE
@ forward _XcptFilter msvcrt._XcptFilter
@ forward __GetMainArgs msvcrt.__getmainargs
@ cdecl __GetMainArgs(ptr ptr ptr long) __GetMainArgs
@ forward __argc_dll msvcrt.__argc
@ forward __argv_dll msvcrt.__argv
@ forward __dllonexit msvcrt.__dllonexit

View File

@ -10,6 +10,10 @@
DEFAULT_DEBUG_CHANNEL(crtdll);
/* from msvcrt */
extern void __cdecl __getmainargs( int *argc, char ***argv, char **environ,
int expand_wildcards, void *_startupinfo );
/* The following data items are not exported from msvcrt */
unsigned int CRTDLL__basemajor_dll;
unsigned int CRTDLL__baseminor_dll;
@ -41,3 +45,12 @@ BOOL WINAPI CRTDLL_Init(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
}
return TRUE;
}
/*********************************************************************
* __GetMainArgs (CRTDLL.@)
*/
void __cdecl __GetMainArgs( int *argc, char ***argv, char **environ, int expand_wildcards )
{
__getmainargs( argc, argv, environ, expand_wildcards, NULL );
}