Alexandre Julliard : kernel32/tests: Use the correct scanf format for a handle.
Alexandre Julliard
julliard at winehq.org
Fri Dec 3 15:18:59 CST 2021
Module: wine
Branch: master
Commit: 3c715f14c729116992619f13ea241ad6b973b20c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=3c715f14c729116992619f13ea241ad6b973b20c
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Dec 3 16:27:18 2021 +0100
kernel32/tests: Use the correct scanf format for a handle.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=52155
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/kernel32/tests/pipe.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/kernel32/tests/pipe.c b/dlls/kernel32/tests/pipe.c
index 1ed4ecec7e6..93eeca16c75 100644
--- a/dlls/kernel32/tests/pipe.c
+++ b/dlls/kernel32/tests/pipe.c
@@ -4206,9 +4206,9 @@ START_TEST(pipe)
{
if (!strcmp(argv[2], "writepipe"))
{
- UINT_PTR handle;
- sscanf(argv[3], "%lx", &handle);
- child_process_write_pipe((HANDLE)handle);
+ ULONG handle;
+ sscanf(argv[3], "%x", &handle);
+ child_process_write_pipe(ULongToHandle(handle));
return;
}
if (!strcmp(argv[2], "checkpid"))
More information about the wine-cvs
mailing list