Commit 72f7f57a authored by Alexandre Julliard's avatar Alexandre Julliard

msi/tests: Avoid using snprintf().

parent 40de7f2e
...@@ -5720,14 +5720,14 @@ static void test_installprops(void) ...@@ -5720,14 +5720,14 @@ static void test_installprops(void)
size = MAX_PATH; size = MAX_PATH;
r = MsiGetPropertyA(hpkg, "ScreenX", buf, &size); r = MsiGetPropertyA(hpkg, "ScreenX", buf, &size);
ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS got %d\n", r); ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS got %d\n", r);
ok(atol(buf) == res, "Expected %d, got %ld\n", res, atol(buf)); ok(atol(buf) == res, "Expected %d, got %s\n", res, buf);
res = GetSystemMetrics(SM_CYSCREEN); res = GetSystemMetrics(SM_CYSCREEN);
buf[0] = 0; buf[0] = 0;
size = MAX_PATH; size = MAX_PATH;
r = MsiGetPropertyA(hpkg, "ScreenY", buf, &size); r = MsiGetPropertyA(hpkg, "ScreenY", buf, &size);
ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS got %d\n", r); ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS got %d\n", r);
ok(atol(buf) == res, "Expected %d, got %ld\n", res, atol(buf)); ok(atol(buf) == res, "Expected %d, got %s\n", res, buf);
buf[0] = 0; buf[0] = 0;
size = MAX_PATH; size = MAX_PATH;
......
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