rpcrt4/tests: Initialize memory in the get_name test.
Dan Hipschman
dsh at linux.ucla.edu
Fri Nov 2 17:21:51 CDT 2007
This initializes the memory for an [in] parameter.
---
dlls/rpcrt4/tests/server.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/rpcrt4/tests/server.c b/dlls/rpcrt4/tests/server.c
index 79a0e32..a82fe91 100644
--- a/dlls/rpcrt4/tests/server.c
+++ b/dlls/rpcrt4/tests/server.c
@@ -857,7 +857,7 @@ pointer_tests(void)
free_list(list);
name.size = 10;
- name.name = buffer = HeapAlloc(GetProcessHeap(), 0, name.size);
+ name.name = buffer = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, name.size);
get_name(&name);
todo_wine
ok(name.name == buffer, "[in,out] pointer should have stayed as %p but instead changed to %p\n", name.name, buffer);
More information about the wine-patches
mailing list