aclui: Use the standard va_list instead of __ms_va_list.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b242273482
commit
13e707b407
|
@ -65,14 +65,14 @@ static HINSTANCE aclui_instance;
|
||||||
|
|
||||||
static WCHAR *WINAPIV load_formatstr(UINT resource, ...)
|
static WCHAR *WINAPIV load_formatstr(UINT resource, ...)
|
||||||
{
|
{
|
||||||
__ms_va_list valist;
|
va_list valist;
|
||||||
WCHAR *str;
|
WCHAR *str;
|
||||||
DWORD ret;
|
DWORD ret;
|
||||||
|
|
||||||
__ms_va_start(valist, resource);
|
va_start(valist, resource);
|
||||||
ret = FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_HMODULE,
|
ret = FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_HMODULE,
|
||||||
aclui_instance, resource, 0, (WCHAR*)&str, 0, &valist);
|
aclui_instance, resource, 0, (WCHAR*)&str, 0, &valist);
|
||||||
__ms_va_end(valist);
|
va_end(valist);
|
||||||
return ret ? str : NULL;
|
return ret ? str : NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue