mirror of
https://github.com/reactos/reactos.git
synced 2025-07-03 10:41:24 +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
1 changed files with 15 additions and 15 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue