From f8142d3fa5fa56dd87434738a83b184608b45a1f Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Tue, 17 Jul 2001 00:39:58 +0000 Subject: [PATCH] Added missing CommandLineToArgvW prototype. --- dlls/shell32/shell32_main.c | 5 +++-- include/shellapi.h | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) 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)