Alexandre Julliard : rpcrt4/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: 8e0b337df1fe64b4a0d27e9cded611faff61c29d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=8e0b337df1fe64b4a0d27e9cded611faff61c29d
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Dec 3 16:29:00 2021 +0100
rpcrt4/tests: Use the correct scanf format for a handle.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/rpcrt4/tests/server.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/rpcrt4/tests/server.c b/dlls/rpcrt4/tests/server.c
index 7b340a11f87..3f34aac681d 100644
--- a/dlls/rpcrt4/tests/server.c
+++ b/dlls/rpcrt4/tests/server.c
@@ -2561,9 +2561,9 @@ START_TEST(server)
}
else if(!strcmp(argv[2], "run"))
{
- UINT_PTR event;
- sscanf(argv[3], "%lx", &event);
- run_server((HANDLE)event);
+ ULONG event;
+ sscanf(argv[3], "%x", &event);
+ run_server(ULongToHandle(event));
}
}
else
More information about the wine-cvs
mailing list