https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3b835aa0abfc161f6d11d…
commit 3b835aa0abfc161f6d11d591f67a3bbdf8d50519
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Sun Mar 13 01:24:01 2022 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Mar 20 19:28:20 2022 +0100
[WINESYNC] msi/tests: Avoid using snprintf().
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 72f7f57a21d6e4dd63de56d4a9a265048ed930b6 by Alexandre Julliard
<julliard(a)winehq.org>
---
modules/rostests/winetests/msi/package.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/rostests/winetests/msi/package.c
b/modules/rostests/winetests/msi/package.c
index 593e254405c..7915798355a 100644
--- a/modules/rostests/winetests/msi/package.c
+++ b/modules/rostests/winetests/msi/package.c
@@ -5720,14 +5720,14 @@ static void test_installprops(void)
size = MAX_PATH;
r = MsiGetPropertyA(hpkg, "ScreenX", buf, &size);
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);
buf[0] = 0;
size = MAX_PATH;
r = MsiGetPropertyA(hpkg, "ScreenY", buf, &size);
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;
size = MAX_PATH;