Commit 52355351 authored by Alexandre Julliard's avatar Alexandre Julliard

msi: Use the standard va_list instead of __ms_va_list.

parent b14447b1
...@@ -146,11 +146,11 @@ UINT WINAPIV MSI_OpenQuery( MSIDATABASE *db, MSIQUERY **view, LPCWSTR fmt, ... ) ...@@ -146,11 +146,11 @@ UINT WINAPIV MSI_OpenQuery( MSIDATABASE *db, MSIQUERY **view, LPCWSTR fmt, ... )
/* construct the string */ /* construct the string */
for (;;) for (;;)
{ {
__ms_va_list va; va_list va;
query = msi_alloc( size*sizeof(WCHAR) ); query = msi_alloc( size*sizeof(WCHAR) );
__ms_va_start(va, fmt); va_start(va, fmt);
res = vswprintf(query, size, fmt, va); res = vswprintf(query, size, fmt, va);
__ms_va_end(va); va_end(va);
if (res == -1) size *= 2; if (res == -1) size *= 2;
else if (res >= size) size = res + 1; else if (res >= size) size = res + 1;
else break; else break;
...@@ -211,11 +211,11 @@ MSIRECORD * WINAPIV MSI_QueryGetRecord( MSIDATABASE *db, LPCWSTR fmt, ... ) ...@@ -211,11 +211,11 @@ MSIRECORD * WINAPIV MSI_QueryGetRecord( MSIDATABASE *db, LPCWSTR fmt, ... )
/* construct the string */ /* construct the string */
for (;;) for (;;)
{ {
__ms_va_list va; va_list va;
query = msi_alloc( size*sizeof(WCHAR) ); query = msi_alloc( size*sizeof(WCHAR) );
__ms_va_start(va, fmt); va_start(va, fmt);
res = vswprintf(query, size, fmt, va); res = vswprintf(query, size, fmt, va);
__ms_va_end(va); va_end(va);
if (res == -1) size *= 2; if (res == -1) size *= 2;
else if (res >= size) size = res + 1; else if (res >= size) size = res + 1;
else break; else break;
......
...@@ -38,11 +38,11 @@ static void WINAPIV ok_(MSIHANDLE hinst, int todo, const char *file, int line, i ...@@ -38,11 +38,11 @@ static void WINAPIV ok_(MSIHANDLE hinst, int todo, const char *file, int line, i
{ {
static char buffer[2000]; static char buffer[2000];
MSIHANDLE record; MSIHANDLE record;
__ms_va_list valist; va_list valist;
__ms_va_start(valist, msg); va_start(valist, msg);
vsprintf(buffer, msg, valist); vsprintf(buffer, msg, valist);
__ms_va_end(valist); va_end(valist);
record = MsiCreateRecord(5); record = MsiCreateRecord(5);
MsiRecordSetInteger(record, 1, todo); MsiRecordSetInteger(record, 1, todo);
......
...@@ -38,13 +38,13 @@ static const WCHAR msifile2W[] = L"winetst2-db.msi"; ...@@ -38,13 +38,13 @@ static const WCHAR msifile2W[] = L"winetst2-db.msi";
static void WINAPIV check_record_(int line, MSIHANDLE rec, UINT count, ...) static void WINAPIV check_record_(int line, MSIHANDLE rec, UINT count, ...)
{ {
__ms_va_list args; va_list args;
UINT i; UINT i;
ok_(__FILE__, line)(count == MsiRecordGetFieldCount(rec), ok_(__FILE__, line)(count == MsiRecordGetFieldCount(rec),
"expected %u fields, got %u\n", count, MsiRecordGetFieldCount(rec)); "expected %u fields, got %u\n", count, MsiRecordGetFieldCount(rec));
__ms_va_start(args, count); va_start(args, count);
for (i = 1; i <= count; ++i) for (i = 1; i <= count; ++i)
{ {
...@@ -57,7 +57,7 @@ static void WINAPIV check_record_(int line, MSIHANDLE rec, UINT count, ...) ...@@ -57,7 +57,7 @@ static void WINAPIV check_record_(int line, MSIHANDLE rec, UINT count, ...)
"field %u: expected \"%s\", got \"%s\"\n", i, expect, buffer); "field %u: expected \"%s\", got \"%s\"\n", i, expect, buffer);
} }
__ms_va_end(args); va_end(args);
} }
#define check_record(rec, ...) check_record_(__LINE__, rec, __VA_ARGS__) #define check_record(rec, ...) check_record_(__LINE__, rec, __VA_ARGS__)
......
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