init dwTotalRecords to 0

fixes a crash in case of GetNumberOfEventLogRecords fails

svn path=/trunk/; revision=39284
This commit is contained in:
Christoph von Wittich 2009-02-02 08:54:57 +00:00
parent 0eea5df223
commit 0db38b3b38

View file

@ -503,7 +503,7 @@ QueryEventMessages(LPWSTR lpMachineName,
HWND hwndDlg; HWND hwndDlg;
HANDLE hEventLog; HANDLE hEventLog;
EVENTLOGRECORD *pevlr; 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 lpSourceName;
LPWSTR lpComputerName; LPWSTR lpComputerName;
LPWSTR lpEventStr; LPWSTR lpEventStr;