[EVENTVWR]

Fix handle leak

svn path=/trunk/; revision=54786
This commit is contained in:
Pierre Schweitzer 2011-12-30 13:31:44 +00:00
parent 3168ab0a08
commit aa518eae68

View file

@ -555,12 +555,12 @@ QueryEventMessages(LPWSTR lpMachineName,
/* If we have at least 1000 records show the waiting dialog */
if (dwTotalRecords > 1000)
{
CreateThread(NULL,
0,
ShowStatusMessageThread,
(LPVOID)&hwndDlg,
0,
NULL);
CloseHandle(CreateThread(NULL,
0,
ShowStatusMessageThread,
(LPVOID)&hwndDlg,
0,
NULL));
}
while (dwCurrentRecord < dwTotalRecords)