From 9111ef38c8f8e516125e7ced3608077861e04794 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Thu, 3 Feb 2022 12:04:16 +0100 Subject: [PATCH] fsutil/tests: Enable compilation with long types. Signed-off-by: Eric Pouech Signed-off-by: Alexandre Julliard --- 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)