diff --git a/dlls/shell32/shell32_main.c b/dlls/shell32/shell32_main.c index 7ac47722466..56f339af0d1 100644 --- a/dlls/shell32/shell32_main.c +++ b/dlls/shell32/shell32_main.c @@ -33,13 +33,14 @@ DEFAULT_DEBUG_CHANNEL(shell); /************************************************************************* * 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 03b1b2c7fa5..f590906dd8f 100644 --- a/include/shellapi.h +++ b/include/shellapi.h @@ -245,6 +245,7 @@ BOOL WINAPI Shell_NotifyIconW(DWORD dwMessage, PNOTIFYICONDATAW lpData); * Misc */ +LPWSTR* WINAPI CommandLineToArgvW(LPCWSTR,int*); HICON WINAPI ExtractIconA(HINSTANCE,LPCSTR,UINT); HICON WINAPI ExtractIconW(HINSTANCE,LPCWSTR,UINT); #define ExtractIcon WINELIB_NAME_AW(ExtractIcon)