Small shellapi.h patch

Francois Gouget fgouget at free.fr
Sat Jul 14 17:04:45 CDT 2001


On Sat, 14 Jul 2001, Francois Gouget wrote:
> 
> Changelog:
> 
>  * include/shellapi.h
> 
>    Add missing CommandLineToArgvW prototype


   Whoops. I forgot half the patch. Here's the complete thing.



--
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
        War doesn't determine who's right.  War determines who's left.
-------------- next part --------------
Index: include/shellapi.h
===================================================================
RCS file: /home/wine/wine/include/shellapi.h,v
retrieving revision 1.13
diff -u -r1.13 shellapi.h
--- include/shellapi.h	2001/01/02 21:00:46	1.13
+++ include/shellapi.h	2001/07/14 21:02:36
@@ -245,6 +245,7 @@
  * Misc
  */
 
+LPWSTR*     WINAPI CommandLineToArgvW(LPCWSTR,int*);
 HICON       WINAPI ExtractIconA(HINSTANCE,LPCSTR,UINT);
 HICON       WINAPI ExtractIconW(HINSTANCE,LPCWSTR,UINT);
 #define     ExtractIcon WINELIB_NAME_AW(ExtractIcon)
Index: dlls/shell32/shell32_main.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/shell32_main.c,v
retrieving revision 1.77
diff -u -r1.77 shell32_main.c
--- dlls/shell32/shell32_main.c	2001/07/02 19:59:43	1.77
+++ dlls/shell32/shell32_main.c	2001/07/14 21:39:53
@@ -33,13 +33,14 @@
 /*************************************************************************
  * CommandLineToArgvW			[SHELL32.@]
  */
-LPWSTR* WINAPI CommandLineToArgvW(LPWSTR cmdline,LPDWORD numargs)
+LPWSTR* WINAPI CommandLineToArgvW(LPCWSTR lpCmdline, int* numargs)
 {	LPWSTR  *argv,s,t;
+	LPWSTR  cmdline;
 	int	i;
 	TRACE("\n");
 
 	/* to get writeable copy */
-	cmdline = HEAP_strdupW( GetProcessHeap(), 0, cmdline);
+	cmdline = HEAP_strdupW( GetProcessHeap(), 0, lpCmdline);
 	s=cmdline;i=0;
 	while (*s)
 	{ /* space */


More information about the wine-patches mailing list