Commit bc909b1b authored by Alexandre Julliard's avatar Alexandre Julliard

shell32: Use the standard va_list instead of __ms_va_list.

parent 348336b8
...@@ -422,10 +422,10 @@ int WINAPIV ShellMessageBoxW( ...@@ -422,10 +422,10 @@ int WINAPIV ShellMessageBoxW(
WCHAR szText[100],szTitle[100]; WCHAR szText[100],szTitle[100];
LPCWSTR pszText = szText, pszTitle = szTitle; LPCWSTR pszText = szText, pszTitle = szTitle;
LPWSTR pszTemp; LPWSTR pszTemp;
__ms_va_list args; va_list args;
int ret; int ret;
__ms_va_start(args, uType); va_start(args, uType);
/* wvsprintfA(buf,fmt, args); */ /* wvsprintfA(buf,fmt, args); */
TRACE("(%p,%p,%p,%p,%08x)\n", TRACE("(%p,%p,%p,%p,%08x)\n",
...@@ -444,7 +444,7 @@ int WINAPIV ShellMessageBoxW( ...@@ -444,7 +444,7 @@ int WINAPIV ShellMessageBoxW(
FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_STRING, FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_STRING,
pszText, 0, 0, (LPWSTR)&pszTemp, 0, &args); pszText, 0, 0, (LPWSTR)&pszTemp, 0, &args);
__ms_va_end(args); va_end(args);
ret = MessageBoxW(hWnd,pszTemp,pszTitle,uType); ret = MessageBoxW(hWnd,pszTemp,pszTitle,uType);
LocalFree(pszTemp); LocalFree(pszTemp);
...@@ -480,10 +480,10 @@ int WINAPIV ShellMessageBoxA( ...@@ -480,10 +480,10 @@ int WINAPIV ShellMessageBoxA(
char szText[100],szTitle[100]; char szText[100],szTitle[100];
LPCSTR pszText = szText, pszTitle = szTitle; LPCSTR pszText = szText, pszTitle = szTitle;
LPSTR pszTemp; LPSTR pszTemp;
__ms_va_list args; va_list args;
int ret; int ret;
__ms_va_start(args, uType); va_start(args, uType);
/* wvsprintfA(buf,fmt, args); */ /* wvsprintfA(buf,fmt, args); */
TRACE("(%p,%p,%p,%p,%08x)\n", TRACE("(%p,%p,%p,%p,%08x)\n",
...@@ -502,7 +502,7 @@ int WINAPIV ShellMessageBoxA( ...@@ -502,7 +502,7 @@ int WINAPIV ShellMessageBoxA(
FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_STRING, FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_STRING,
pszText, 0, 0, (LPSTR)&pszTemp, 0, &args); pszText, 0, 0, (LPSTR)&pszTemp, 0, &args);
__ms_va_end(args); va_end(args);
ret = MessageBoxA(hWnd,pszTemp,pszTitle,uType); ret = MessageBoxA(hWnd,pszTemp,pszTitle,uType);
LocalFree(pszTemp); LocalFree(pszTemp);
......
...@@ -287,7 +287,7 @@ static BOOL SHELL_ConfirmDialogW(HWND hWnd, int nKindOfDialog, LPCWSTR szDir, FI ...@@ -287,7 +287,7 @@ static BOOL SHELL_ConfirmDialogW(HWND hWnd, int nKindOfDialog, LPCWSTR szDir, FI
args[0] = (DWORD_PTR)szDir; args[0] = (DWORD_PTR)szDir;
FormatMessageW(FORMAT_MESSAGE_FROM_STRING|FORMAT_MESSAGE_ARGUMENT_ARRAY, FormatMessageW(FORMAT_MESSAGE_FROM_STRING|FORMAT_MESSAGE_ARGUMENT_ARRAY,
szText, 0, 0, szBuffer, ARRAY_SIZE(szBuffer), (__ms_va_list*)args); szText, 0, 0, szBuffer, ARRAY_SIZE(szBuffer), (va_list*)args);
hIcon = LoadIconW(ids.hIconInstance, (LPWSTR)MAKEINTRESOURCE(ids.icon_resource_id)); hIcon = LoadIconW(ids.hIconInstance, (LPWSTR)MAKEINTRESOURCE(ids.icon_resource_id));
......
...@@ -114,13 +114,13 @@ static char* decodeA(const char* str) ...@@ -114,13 +114,13 @@ static char* decodeA(const char* str)
static void WINAPIV __WINE_PRINTF_ATTR(2,3) childPrintf(HANDLE h, const char* fmt, ...) static void WINAPIV __WINE_PRINTF_ATTR(2,3) childPrintf(HANDLE h, const char* fmt, ...)
{ {
__ms_va_list valist; va_list valist;
char buffer[1024]; char buffer[1024];
DWORD w; DWORD w;
__ms_va_start(valist, fmt); va_start(valist, fmt);
vsprintf(buffer, fmt, valist); vsprintf(buffer, fmt, valist);
__ms_va_end(valist); va_end(valist);
WriteFile(h, buffer, strlen(buffer), &w, NULL); WriteFile(h, buffer, strlen(buffer), &w, NULL);
} }
...@@ -348,14 +348,14 @@ static void dump_child_(const char* file, int line) ...@@ -348,14 +348,14 @@ static void dump_child_(const char* file, int line)
static char shell_call[2048]; static char shell_call[2048];
static void WINAPIV __WINE_PRINTF_ATTR(2,3) _okShell(int condition, const char *msg, ...) static void WINAPIV __WINE_PRINTF_ATTR(2,3) _okShell(int condition, const char *msg, ...)
{ {
__ms_va_list valist; va_list valist;
char buffer[2048]; char buffer[2048];
strcpy(buffer, shell_call); strcpy(buffer, shell_call);
strcat(buffer, " "); strcat(buffer, " ");
__ms_va_start(valist, msg); va_start(valist, msg);
vsprintf(buffer+strlen(buffer), msg, valist); vsprintf(buffer+strlen(buffer), msg, valist);
__ms_va_end(valist); va_end(valist);
winetest_ok(condition, "%s", buffer); winetest_ok(condition, "%s", buffer);
} }
#define okShell_(file, line) (winetest_set_location(file, line), 0) ? (void)0 : _okShell #define okShell_(file, line) (winetest_set_location(file, line), 0) ? (void)0 : _okShell
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment