Author: pschweitzer
Date: Fri Dec 30 13:31:44 2011
New Revision: 54786
URL:
http://svn.reactos.org/svn/reactos?rev=54786&view=rev
Log:
[EVENTVWR]
Fix handle leak
Modified:
trunk/reactos/base/applications/mscutils/eventvwr/eventvwr.c
Modified: trunk/reactos/base/applications/mscutils/eventvwr/eventvwr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/eventvwr/eventvwr.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mscutils/eventvwr/eventvwr.c [iso-8859-1] Fri Dec 30
13:31:44 2011
@@ -555,12 +555,12 @@
/* 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)