mirror of
https://github.com/reactos/reactos.git
synced 2024-07-11 23:25:09 +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;
|
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;
|
||||||
|
|
Loading…
Reference in a new issue