Author: dchapyshev
Date: Sat Dec 20 02:07:10 2008
New Revision: 38192
URL:
http://svn.reactos.org/svn/reactos?rev=38192&view=rev
Log:
- Formatting fix
Modified:
trunk/reactos/dll/win32/kernel32/file/lfile.c
Modified: trunk/reactos/dll/win32/kernel32/file/lfile.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/file/lf…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/file/lfile.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/file/lfile.c [iso-8859-1] Sat Dec 20 02:07:10 2008
@@ -19,24 +19,19 @@
*/
long
WINAPI
-_hread(
- HFILE hFile,
- LPVOID lpBuffer,
- long lBytes
- )
+_hread(HFILE hFile, LPVOID lpBuffer, long lBytes)
{
- DWORD NumberOfBytesRead;
+ DWORD NumberOfBytesRead;
- if ( !ReadFile(
- LongToHandle(hFile),
- lpBuffer,
- (DWORD) lBytes,
- & NumberOfBytesRead,
- NULL) )
- {
- return HFILE_ERROR;
- }
- return NumberOfBytesRead;
+ if (!ReadFile(LongToHandle(hFile),
+ lpBuffer,
+ (DWORD) lBytes,
+ &NumberOfBytesRead,
+ NULL))
+ {
+ return HFILE_ERROR;
+ }
+ return NumberOfBytesRead;
}
@@ -45,32 +40,27 @@
*/
long
WINAPI
-_hwrite (
- HFILE hFile,
- LPCSTR lpBuffer,
- long lBytes
- )
+_hwrite(HFILE hFile, LPCSTR lpBuffer, long lBytes)
{
- DWORD NumberOfBytesWritten;
+ DWORD NumberOfBytesWritten;
- if (lBytes == 0)
- {
- if ( !SetEndOfFile((HANDLE) hFile ) )
- {
- return HFILE_ERROR;
- }
- return 0;
- }
- if ( !WriteFile(
- (HANDLE) hFile,
- (LPVOID) lpBuffer,
- (DWORD) lBytes,
- & NumberOfBytesWritten,
- NULL) )
- {
- return HFILE_ERROR;
- }
- return NumberOfBytesWritten;
+ if (lBytes == 0)
+ {
+ if (!SetEndOfFile((HANDLE) hFile))
+ {
+ return HFILE_ERROR;
+ }
+ return 0;
+ }
+ if (!WriteFile(LongToHandle(hFile),
+ (LPVOID) lpBuffer,
+ (DWORD) lBytes,
+ &NumberOfBytesWritten,
+ NULL))
+ {
+ return HFILE_ERROR;
+ }
+ return NumberOfBytesWritten;
}
@@ -79,10 +69,7 @@
*/
HFILE
WINAPI
-_lopen (
- LPCSTR lpPathName,
- int iReadWrite
- )
+_lopen(LPCSTR lpPathName, int iReadWrite)
{
DWORD dwAccess, dwSharing, dwCreation;
@@ -128,10 +115,7 @@
*/
HFILE
WINAPI
-_lcreat (
- LPCSTR lpPathName,
- int iAttribute
- )
+_lcreat(LPCSTR lpPathName, int iAttribute)
{
HANDLE hFile;
@@ -153,11 +137,9 @@
*/
int
WINAPI
-_lclose (
- HFILE hFile
- )
+_lclose(HFILE hFile)
{
- return CloseHandle(LongToHandle(hFile)) ? 0 : HFILE_ERROR;
+ return CloseHandle(LongToHandle(hFile)) ? 0 : HFILE_ERROR;
}
@@ -166,11 +148,7 @@
*/
LONG
WINAPI
-_llseek(
- HFILE hFile,
- LONG lOffset,
- int iOrigin
- )
+_llseek(HFILE hFile, LONG lOffset, int iOrigin)
{
return SetFilePointer(LongToHandle(hFile),
lOffset,