Crtdll patch
Francois Gouget
fgouget at free.fr
Mon Apr 9 22:09:38 CDT 2001
See also the related msvcrt patches.
Changelog:
* dlls/crtdll/crtdll_main.c
Fix the signature of __GetMainArgs and __getmainargs (from msvcrt)
--
Francois Gouget fgouget at free.fr http://fgouget.free.fr/
The greatest programming project of all took six days; on the seventh day the
programmer rested. We've been trying to debug the *&^%$#@ thing ever since.
Resume: design before you implement.
-------------- next part --------------
Index: dlls/crtdll/crtdll_main.c
===================================================================
RCS file: /home/cvs/wine/wine/dlls/crtdll/crtdll_main.c,v
retrieving revision 1.41
diff -u -r1.41 crtdll_main.c
--- dlls/crtdll/crtdll_main.c 2001/02/21 02:20:08 1.41
+++ dlls/crtdll/crtdll_main.c 2001/04/08 23:47:33
@@ -11,8 +11,8 @@
DEFAULT_DEBUG_CHANNEL(crtdll);
/* from msvcrt */
-extern void __cdecl __getmainargs( int *argc, char ***argv, char **environ,
- int expand_wildcards, int *new_mode );
+extern void __getmainargs( int *argc, char ***argv, char ***envp,
+ int expand_wildcards, int *new_mode );
/* The following data items are not exported from msvcrt */
unsigned int CRTDLL__basemajor_dll;
@@ -50,8 +50,8 @@
/*********************************************************************
* __GetMainArgs (CRTDLL.@)
*/
-void __cdecl __GetMainArgs( int *argc, char ***argv, char **environ, int expand_wildcards )
+void __GetMainArgs( int *argc, char ***argv, char ***envp, int expand_wildcards )
{
int new_mode = 0;
- __getmainargs( argc, argv, environ, expand_wildcards, &new_mode );
+ __getmainargs( argc, argv, envp, expand_wildcards, &new_mode );
}
More information about the wine-patches
mailing list