[PATCH] initialize memory to send
Marcus Meissner
marcus at jet.franken.de
Sat Jun 21 03:32:12 CDT 2008
Hi,
spotted by valgrind which complains that we do not initialize
the memory we send.
While the memory content is not used anywhere I guess, just
shut up valgrind.
Ciao, Marcus
---
dlls/ws2_32/tests/sock.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index 7f6e49e..9e2b498 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -1921,7 +1921,7 @@ static void test_send(void)
goto end;
}
- buffer = HeapAlloc(GetProcessHeap(), 0, buflen);
+ buffer = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, buflen);
if (buffer == NULL)
{
ok(0, "HeapAlloc failed, error %d\n", GetLastError());
--
1.5.2.4
More information about the wine-patches
mailing list