Author: mjmartin
Date: Mon Sep 21 14:49:25 2009
New Revision: 43102
URL:
http://svn.reactos.org/svn/reactos?rev=43102&view=rev
Log:
LogfWriteData: Add missing LeaveCriticalSection before returning from function. Found by
Amine Khaldi
Modified:
trunk/reactos/base/services/eventlog/file.c
Modified: trunk/reactos/base/services/eventlog/file.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/eventlog/fil…
==============================================================================
--- trunk/reactos/base/services/eventlog/file.c [iso-8859-1] (original)
+++ trunk/reactos/base/services/eventlog/file.c [iso-8859-1] Mon Sep 21 14:49:25 2009
@@ -704,6 +704,7 @@
if (!GetFileSizeEx(LogFile->hFile, &logFileSize))
{
+ LeaveCriticalSection(&LogFile->cs);
return FALSE;
}
@@ -751,6 +752,7 @@
if (RecBuf->Reserved != LOGFILE_SIGNATURE)
{
DPRINT1("LogFile corrupt!\n");
+ LeaveCriticalSection(&LogFile->cs);
return FALSE;
}