mirror of
https://github.com/reactos/reactos.git
synced 2024-07-12 07:35:10 +00:00
init dwTotalRecords to 0
fixes a crash in case of GetNumberOfEventLogRecords fails svn path=/trunk/; revision=39284
This commit is contained in:
parent
0eea5df223
commit
0db38b3b38
|
@ -503,7 +503,7 @@ QueryEventMessages(LPWSTR lpMachineName,
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue