[ros-diffs] [pschweitzer] 50979: [KERNEL32] Apply consistent formatting to FlushFileBuffers. No code changes yet
pschweitzer at svn.reactos.org
pschweitzer at svn.reactos.org
Sun Mar 6 10:20:33 UTC 2011
Author: pschweitzer
Date: Sun Mar 6 10:20:32 2011
New Revision: 50979
URL: http://svn.reactos.org/svn/reactos?rev=50979&view=rev
Log:
[KERNEL32]
Apply consistent formatting to FlushFileBuffers.
No code changes yet
Modified:
trunk/reactos/dll/win32/kernel32/file/file.c
Modified: trunk/reactos/dll/win32/kernel32/file/file.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/file.c?rev=50979&r1=50978&r2=50979&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/file/file.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/file/file.c [iso-8859-1] Sun Mar 6 10:20:32 2011
@@ -408,24 +408,24 @@
BOOL WINAPI
FlushFileBuffers(HANDLE hFile)
{
- NTSTATUS errCode;
- IO_STATUS_BLOCK IoStatusBlock;
-
- hFile = TranslateStdHandle(hFile);
-
- if (IsConsoleHandle(hFile))
- {
- return FALSE;
- }
-
- errCode = NtFlushBuffersFile(hFile,
- &IoStatusBlock);
- if (!NT_SUCCESS(errCode))
- {
- SetLastErrorByStatus(errCode);
- return(FALSE);
- }
- return(TRUE);
+ NTSTATUS errCode;
+ IO_STATUS_BLOCK IoStatusBlock;
+
+ hFile = TranslateStdHandle(hFile);
+
+ if (IsConsoleHandle(hFile))
+ {
+ return FALSE;
+ }
+
+ errCode = NtFlushBuffersFile(hFile,
+ &IoStatusBlock);
+ if (!NT_SUCCESS(errCode))
+ {
+ SetLastErrorByStatus(errCode);
+ return(FALSE);
+ }
+ return(TRUE);
}
More information about the Ros-diffs
mailing list