[PATCH 3/9] programs/fsutil/tests: enable compilation with long types

Eric Pouech eric.pouech at gmail.com
Thu Feb 3 05:04:16 CST 2022


Signed-off-by: Eric Pouech <eric.pouech at gmail.com>

---
 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-devel mailing list