[EVENTVWR]
authorPierre Schweitzer <pierre@reactos.org>
Sun, 19 Feb 2017 17:24:13 +0000 (17:24 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 19 Feb 2017 17:24:13 +0000 (17:24 +0000)
Don't attempt to free random address

CID 1401231

svn path=/trunk/; revision=73848

reactos/base/applications/mscutils/eventvwr/eventvwr.c

index ea0f2cb..939faa9 100644 (file)
@@ -1430,7 +1430,7 @@ EnumEventsThread(IN LPVOID lpParameter)
 
     ULONG LogIndex;
     HANDLE hEventLog;
-    PEVENTLOGRECORD pEvlr;
+    PEVENTLOGRECORD pEvlr = NULL;
     PBYTE pEvlrEnd;
     PBYTE pEvlrBuffer;
     DWORD dwWanted, dwRead, dwNeeded, dwStatus = ERROR_SUCCESS;