mirror of
https://github.com/reactos/reactos.git
synced 2024-09-06 19:02:32 +00:00
[KERNEL32]
Apply consistent formatting to FlushFileBuffers. No code changes yet svn path=/trunk/; revision=50979
This commit is contained in:
parent
6b1af86bde
commit
5696898543
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue