mirror of
https://github.com/reactos/reactos.git
synced 2025-06-12 02:08:30 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue