Eric Pouech : fsutil/tests: Enable compilation with long types.
Alexandre Julliard
julliard at winehq.org
Thu Feb 3 16:06:56 CST 2022
Module: wine
Branch: master
Commit: 9111ef38c8f8e516125e7ced3608077861e04794
URL: https://source.winehq.org/git/wine.git/?a=commit;h=9111ef38c8f8e516125e7ced3608077861e04794
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Thu Feb 3 12:04:16 2022 +0100
fsutil/tests: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
programs/fsutil/tests/Makefile.in | 1 -
programs/fsutil/tests/fsutil.c | 6 +++---
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/programs/fsutil/tests/Makefile.in b/programs/fsutil/tests/Makefile.in
index 01605e695f7..f0490b3b660 100644
--- a/programs/fsutil/tests/Makefile.in
+++ b/programs/fsutil/tests/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
TESTDLL = fsutil.exe
IMPORTS = advapi32 user32
diff --git a/programs/fsutil/tests/fsutil.c b/programs/fsutil/tests/fsutil.c
index aa0d5d3884b..0e02d8cac65 100644
--- a/programs/fsutil/tests/fsutil.c
+++ b/programs/fsutil/tests/fsutil.c
@@ -97,7 +97,7 @@ static void test_hardlink(void)
FILE_ATTRIBUTE_NORMAL, NULL);
ok(hfile != INVALID_HANDLE_VALUE, "failed to open the hardlink\n");
boolrc = GetFileInformationByHandle(hfile, &info);
- ok(boolrc, "failed to get info about hardlink, error %#x\n", GetLastError());
+ ok(boolrc, "failed to get info about hardlink, error %#lx\n", GetLastError());
CloseHandle(hfile);
ok(info.nNumberOfLinks == 2, "our link is not a hardlink\n");
@@ -109,9 +109,9 @@ static void test_hardlink(void)
ok(rc == 1, "fsutil didn't complain about nonexisting source file\n");
boolrc = DeleteFileA("link");
- ok(boolrc, "failed to delete the hardlink, error %#x\n", GetLastError());
+ ok(boolrc, "failed to delete the hardlink, error %#lx\n", GetLastError());
boolrc = DeleteFileA("file");
- ok(boolrc, "failed to delete the file, error %#x\n", GetLastError());
+ ok(boolrc, "failed to delete the file, error %#lx\n", GetLastError());
}
START_TEST(fsutil)
More information about the wine-cvs
mailing list