Commit e86296a4 authored by Michael Ploujnikov's avatar Michael Ploujnikov Committed by Alexandre Julliard

msi/tests: Win64 printf format warning fixes.

parent 8e302e15
...@@ -4,7 +4,6 @@ SRCDIR = @srcdir@ ...@@ -4,7 +4,6 @@ SRCDIR = @srcdir@
VPATH = @srcdir@ VPATH = @srcdir@
TESTDLL = msi.dll TESTDLL = msi.dll
IMPORTS = cabinet msi ole32 advapi32 kernel32 IMPORTS = cabinet msi ole32 advapi32 kernel32
EXTRADEFS = -DWINE_NO_LONG_AS_INT
CTESTS = \ CTESTS = \
db.c \ db.c \
......
...@@ -619,12 +619,12 @@ static void test_MsiInstallProduct(void) ...@@ -619,12 +619,12 @@ static void test_MsiInstallProduct(void)
} }
res = RegOpenKey(HKEY_LOCAL_MACHINE, "SOFTWARE\\Wine\\msitest", &hkey); res = RegOpenKey(HKEY_LOCAL_MACHINE, "SOFTWARE\\Wine\\msitest", &hkey);
ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %ld\n", res); ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res);
size = MAX_PATH; size = MAX_PATH;
type = REG_SZ; type = REG_SZ;
res = RegQueryValueExA(hkey, "Name", NULL, &type, (LPBYTE)path, &size); res = RegQueryValueExA(hkey, "Name", NULL, &type, (LPBYTE)path, &size);
ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %ld\n", res); ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res);
ok(!lstrcmpA(path, "imaname"), "Expected imaname, got %s\n", path); ok(!lstrcmpA(path, "imaname"), "Expected imaname, got %s\n", path);
size = MAX_PATH; size = MAX_PATH;
...@@ -632,14 +632,14 @@ static void test_MsiInstallProduct(void) ...@@ -632,14 +632,14 @@ static void test_MsiInstallProduct(void)
res = RegQueryValueExA(hkey, "blah", NULL, &type, (LPBYTE)path, &size); res = RegQueryValueExA(hkey, "blah", NULL, &type, (LPBYTE)path, &size);
todo_wine todo_wine
{ {
ok(res == ERROR_FILE_NOT_FOUND, "Expected ERROR_FILE_NOT_FOUND, got %ld\n", res); ok(res == ERROR_FILE_NOT_FOUND, "Expected ERROR_FILE_NOT_FOUND, got %d\n", res);
} }
size = sizeof(num); size = sizeof(num);
type = REG_DWORD; type = REG_DWORD;
res = RegQueryValueExA(hkey, "number", NULL, &type, (LPBYTE)&num, &size); res = RegQueryValueExA(hkey, "number", NULL, &type, (LPBYTE)&num, &size);
ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %ld\n", res); ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res);
ok(num == 314, "Expected 314, got %ld\n", num); ok(num == 314, "Expected 314, got %d\n", num);
RegDeleteKeyA(HKEY_LOCAL_MACHINE, "SOFTWARE\\Wine\\msitest"); RegDeleteKeyA(HKEY_LOCAL_MACHINE, "SOFTWARE\\Wine\\msitest");
} }
......
...@@ -2078,25 +2078,25 @@ static void test_getproperty(void) ...@@ -2078,25 +2078,25 @@ static void test_getproperty(void)
size = 0; size = 0;
r = MsiGetProperty(hPackage, "Name", NULL, &size); r = MsiGetProperty(hPackage, "Name", NULL, &size);
ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
ok( size == 5, "Expected 5, got %ld\n", size); ok( size == 5, "Expected 5, got %d\n", size);
/* retrieve the size, empty string */ /* retrieve the size, empty string */
size = 0; size = 0;
r = MsiGetProperty(hPackage, "Name", empty, &size); r = MsiGetProperty(hPackage, "Name", empty, &size);
ok( r == ERROR_MORE_DATA, "Expected ERROR_MORE_DATA, got %d\n", r); ok( r == ERROR_MORE_DATA, "Expected ERROR_MORE_DATA, got %d\n", r);
ok( size == 5, "Expected 5, got %ld\n", size); ok( size == 5, "Expected 5, got %d\n", size);
/* don't change size */ /* don't change size */
r = MsiGetProperty(hPackage, "Name", prop, &size); r = MsiGetProperty(hPackage, "Name", prop, &size);
ok( r == ERROR_MORE_DATA, "Expected ERROR_MORE_DATA, got %d\n", r); ok( r == ERROR_MORE_DATA, "Expected ERROR_MORE_DATA, got %d\n", r);
ok( size == 5, "Expected 5, got %ld\n", size); ok( size == 5, "Expected 5, got %d\n", size);
ok( !lstrcmp(prop, "Valu"), "Expected Valu, got %s\n", prop); ok( !lstrcmp(prop, "Valu"), "Expected Valu, got %s\n", prop);
/* increase the size by 1 */ /* increase the size by 1 */
size++; size++;
r = MsiGetProperty(hPackage, "Name", prop, &size); r = MsiGetProperty(hPackage, "Name", prop, &size);
ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
ok( size == 5, "Expected 5, got %ld\n", size); ok( size == 5, "Expected 5, got %d\n", size);
ok( !lstrcmp(prop, "Value"), "Expected Value, got %s\n", prop); ok( !lstrcmp(prop, "Value"), "Expected Value, got %s\n", prop);
r = MsiCloseHandle( hPackage); r = MsiCloseHandle( hPackage);
......
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