[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 BOOL WINAPI
FlushFileBuffers(HANDLE hFile) FlushFileBuffers(HANDLE hFile)
{ {
NTSTATUS errCode; NTSTATUS errCode;
IO_STATUS_BLOCK IoStatusBlock; IO_STATUS_BLOCK IoStatusBlock;
hFile = TranslateStdHandle(hFile); hFile = TranslateStdHandle(hFile);
if (IsConsoleHandle(hFile)) if (IsConsoleHandle(hFile))
{ {
return FALSE; return FALSE;
} }
errCode = NtFlushBuffersFile(hFile, errCode = NtFlushBuffersFile(hFile,
&IoStatusBlock); &IoStatusBlock);
if (!NT_SUCCESS(errCode)) if (!NT_SUCCESS(errCode))
{ {
SetLastErrorByStatus(errCode); SetLastErrorByStatus(errCode);
return(FALSE); return(FALSE);
} }
return(TRUE); return(TRUE);
} }