[ros-diffs] [cwittich] 39284: init dwTotalRecords to 0 fixes a crash in case of GetNumberOfEventLogRecords fails

cwittich at svn.reactos.org cwittich at svn.reactos.org
Mon Feb 2 09:54:58 CET 2009


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/eventvwr/eventvwr.c?rev=39284&r1=39283&r2=39284&view=diff
==============================================================================
--- 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;



More information about the Ros-diffs mailing list