[KERNEL32]

Apply consistent formatting to FlushFileBuffers.
No code changes yet

svn path=/trunk/; revision=50979
This commit is contained in:
Pierre Schweitzer 2011-03-06 10:20:32 +00:00
parent 6b1af86bde
commit 5696898543

View file

@ -408,24 +408,24 @@ OpenFile(LPCSTR lpFileName,
BOOL WINAPI
FlushFileBuffers(HANDLE hFile)
{
NTSTATUS errCode;
IO_STATUS_BLOCK IoStatusBlock;
NTSTATUS errCode;
IO_STATUS_BLOCK IoStatusBlock;
hFile = TranslateStdHandle(hFile);
hFile = TranslateStdHandle(hFile);
if (IsConsoleHandle(hFile))
{
return FALSE;
}
if (IsConsoleHandle(hFile))
{
return FALSE;
}
errCode = NtFlushBuffersFile(hFile,
&IoStatusBlock);
if (!NT_SUCCESS(errCode))
{
SetLastErrorByStatus(errCode);
return(FALSE);
}
return(TRUE);
errCode = NtFlushBuffersFile(hFile,
&IoStatusBlock);
if (!NT_SUCCESS(errCode))
{
SetLastErrorByStatus(errCode);
return(FALSE);
}
return(TRUE);
}