Author: cwittich
Date: Mon Feb 2 02:54:57 2009
New Revision: 39284
URL:
http://svn.reactos.org/svn/reactos?rev=39284&view=rev
Log:
init dwTotalRecords to 0
fixes a crash in case of GetNumberOfEventLogRecords fails
Modified:
trunk/reactos/base/applications/mscutils/eventvwr/eventvwr.c
Modified: trunk/reactos/base/applications/mscutils/eventvwr/eventvwr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/eventvwr.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/eventvwr.c [iso-8859-1] Mon Feb 2
02:54:57 2009
@@ -503,7 +503,7 @@
HWND hwndDlg;
HANDLE hEventLog;
EVENTLOGRECORD *pevlr;
- DWORD dwRead, dwNeeded, dwThisRecord, dwTotalRecords, dwCurrentRecord = 1,
dwRecordsToRead = 0, dwFlags;
+ DWORD dwRead, dwNeeded, dwThisRecord, dwTotalRecords = 0, dwCurrentRecord = 1,
dwRecordsToRead = 0, dwFlags;
LPWSTR lpSourceName;
LPWSTR lpComputerName;
LPWSTR lpEventStr;