[PATCH] rpcrt4/tests: Document RpcBindingFree(NULL) case.
Serge Gautherie
winehq-git_serge_180711 at gautherie.fr
Wed Apr 22 13:21:57 CDT 2020
Signed-off-by: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
---
dlls/rpcrt4/tests/rpc.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/rpcrt4/tests/rpc.c b/dlls/rpcrt4/tests/rpc.c
index d3a3aee..2b16ea9 100644
--- a/dlls/rpcrt4/tests/rpc.c
+++ b/dlls/rpcrt4/tests/rpc.c
@@ -848,6 +848,11 @@ static void test_RpcBindingFree(void)
RPC_BINDING_HANDLE binding = NULL;
RPC_STATUS status;
+#if 0
+ /* NULL triggers a STATUS_ACCESS_VIOLATION exception: it is not a special value */
+ status = RpcBindingFree(NULL);
+#endif
+
status = RpcBindingFree(&binding);
ok(status == RPC_S_INVALID_BINDING,
"RpcBindingFree should have returned RPC_S_INVALID_BINDING instead of %d\n",
--
2.10.0.windows.1
More information about the wine-devel
mailing list