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"))