mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +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
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue