=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: advapi32/tests: Don' t cast return value from HeapAlloc.
Alexandre Julliard
julliard at winehq.org
Tue Jan 2 13:19:02 CST 2018
Module: wine
Branch: master
Commit: ab2ae76ea4bf5d367c2f444b2358cf7e404a863d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=ab2ae76ea4bf5d367c2f444b2358cf7e404a863d
Author: André Hentschel <nerv at dawncrow.de>
Date: Tue Jan 2 12:54:11 2018 +0100
advapi32/tests: Don't cast return value from HeapAlloc.
Signed-off-by: André Hentschel <nerv at dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/advapi32/tests/eventlog.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/advapi32/tests/eventlog.c b/dlls/advapi32/tests/eventlog.c
index 8c78dcf..e6b2de5 100644
--- a/dlls/advapi32/tests/eventlog.c
+++ b/dlls/advapi32/tests/eventlog.c
@@ -1157,7 +1157,7 @@ static void test_start_trace(void)
LONG ret;
buffersize = sizeof(EVENT_TRACE_PROPERTIES) + sizeof(sessionname) + sizeof(filepath);
- properties = (EVENT_TRACE_PROPERTIES *) HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, buffersize);
+ properties = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, buffersize);
properties->Wnode.BufferSize = buffersize;
properties->Wnode.Flags = WNODE_FLAG_TRACED_GUID;
properties->LogFileMode = EVENT_TRACE_FILE_MODE_NONE;
More information about the wine-cvs
mailing list