From a8ece7e81a6d16b0b2fa115bb4c0afad7898e6c3 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sun, 14 Apr 2024 12:49:01 +0300 Subject: [PATCH] [EVTLIB] Fix size of event log record The size is 32bit, don't read a SIZE_T. Fixes crashes of advapi32_winetest eventlog on x64. --- sdk/lib/evtlib/evtlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/lib/evtlib/evtlib.c b/sdk/lib/evtlib/evtlib.c index 06c7de8c751..75d908bfb6e 100644 --- a/sdk/lib/evtlib/evtlib.c +++ b/sdk/lib/evtlib/evtlib.c @@ -1205,7 +1205,7 @@ ElfReadRecord( NTSTATUS Status; LARGE_INTEGER FileOffset; ULONG RecOffset; - SIZE_T RecSize; + ULONG RecSize; SIZE_T ReadLength; ASSERT(LogFile);