Added missing CommandLineToArgvW prototype.
diff --git a/dlls/shell32/shell32_main.c b/dlls/shell32/shell32_main.c
index 7ac4772..56f339a 100644
--- a/dlls/shell32/shell32_main.c
+++ b/dlls/shell32/shell32_main.c
@@ -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 */
diff --git a/include/shellapi.h b/include/shellapi.h
index 03b1b2c..f590906 100644
--- a/include/shellapi.h
+++ b/include/shellapi.h
@@ -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)