mirror of
https://github.com/reactos/reactos.git
synced 2024-08-01 00:58:16 +00:00
LogfWriteData: Add missing LeaveCriticalSection before returning from function. Found by Amine Khaldi
svn path=/trunk/; revision=43102
This commit is contained in:
parent
1ebd555855
commit
302ad7c74f
|
@ -704,6 +704,7 @@ BOOL LogfWriteData(PLOGFILE LogFile, DWORD BufSize, PBYTE Buffer)
|
|||
|
||||
if (!GetFileSizeEx(LogFile->hFile, &logFileSize))
|
||||
{
|
||||
LeaveCriticalSection(&LogFile->cs);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -751,6 +752,7 @@ BOOL LogfWriteData(PLOGFILE LogFile, DWORD BufSize, PBYTE Buffer)
|
|||
if (RecBuf->Reserved != LOGFILE_SIGNATURE)
|
||||
{
|
||||
DPRINT1("LogFile corrupt!\n");
|
||||
LeaveCriticalSection(&LogFile->cs);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue