Commit 91ab1208 authored by Alexandre Julliard's avatar Alexandre Julliard

Fixed __GetMainArgs.

parent 0ee5f8c6
......@@ -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
......
......@@ -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 );
}
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