mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 12:13:10 +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
1 changed files with 2 additions and 0 deletions
|
@ -704,6 +704,7 @@ BOOL LogfWriteData(PLOGFILE LogFile, DWORD BufSize, PBYTE Buffer)
|
||||||
|
|
||||||
if (!GetFileSizeEx(LogFile->hFile, &logFileSize))
|
if (!GetFileSizeEx(LogFile->hFile, &logFileSize))
|
||||||
{
|
{
|
||||||
|
LeaveCriticalSection(&LogFile->cs);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -751,6 +752,7 @@ BOOL LogfWriteData(PLOGFILE LogFile, DWORD BufSize, PBYTE Buffer)
|
||||||
if (RecBuf->Reserved != LOGFILE_SIGNATURE)
|
if (RecBuf->Reserved != LOGFILE_SIGNATURE)
|
||||||
{
|
{
|
||||||
DPRINT1("LogFile corrupt!\n");
|
DPRINT1("LogFile corrupt!\n");
|
||||||
|
LeaveCriticalSection(&LogFile->cs);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue