Author: hbelusca
Date: Fri Jun 7 23:50:44 2013
New Revision: 59187
URL:
http://svn.reactos.org/svn/reactos?rev=59187&view=rev
Log:
Fix code indentation
Modified:
trunk/reactos/dll/win32/kernel32/client/file/filename.c
Modified: trunk/reactos/dll/win32/kernel32/client/file/filename.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/filename.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/filename.c [iso-8859-1] Fri Jun 7
23:50:44 2013
@@ -233,53 +233,53 @@
BOOL
WINAPI
SetFileShortNameW(
- HANDLE hFile,
- LPCWSTR lpShortName)
-{
- NTSTATUS Status;
- ULONG NeededSize;
- UNICODE_STRING ShortName;
- IO_STATUS_BLOCK IoStatusBlock;
- PFILE_NAME_INFORMATION FileNameInfo;
-
- if(IsConsoleHandle(hFile))
- {
- SetLastError(ERROR_INVALID_HANDLE);
- return FALSE;
- }
-
- if(!lpShortName)
- {
- SetLastError(ERROR_INVALID_PARAMETER);
- return FALSE;
- }
-
- RtlInitUnicodeString(&ShortName, lpShortName);
-
- NeededSize = sizeof(FILE_NAME_INFORMATION) + ShortName.Length + sizeof(WCHAR);
- if(!(FileNameInfo = RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY,
NeededSize)))
- {
- SetLastError(ERROR_NOT_ENOUGH_MEMORY);
- return FALSE;
- }
-
- FileNameInfo->FileNameLength = ShortName.Length;
- RtlCopyMemory(FileNameInfo->FileName, ShortName.Buffer, ShortName.Length);
-
- Status = NtSetInformationFile(hFile,
- &IoStatusBlock, //out
- FileNameInfo,
- NeededSize,
- FileShortNameInformation);
-
- RtlFreeHeap(RtlGetProcessHeap(), 0, FileNameInfo);
- if(!NT_SUCCESS(Status))
- {
- BaseSetLastNTError(Status);
- return FALSE;
- }
-
- return TRUE;
+ HANDLE hFile,
+ LPCWSTR lpShortName)
+{
+ NTSTATUS Status;
+ ULONG NeededSize;
+ UNICODE_STRING ShortName;
+ IO_STATUS_BLOCK IoStatusBlock;
+ PFILE_NAME_INFORMATION FileNameInfo;
+
+ if(IsConsoleHandle(hFile))
+ {
+ SetLastError(ERROR_INVALID_HANDLE);
+ return FALSE;
+ }
+
+ if(!lpShortName)
+ {
+ SetLastError(ERROR_INVALID_PARAMETER);
+ return FALSE;
+ }
+
+ RtlInitUnicodeString(&ShortName, lpShortName);
+
+ NeededSize = sizeof(FILE_NAME_INFORMATION) + ShortName.Length + sizeof(WCHAR);
+ if(!(FileNameInfo = RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY,
NeededSize)))
+ {
+ SetLastError(ERROR_NOT_ENOUGH_MEMORY);
+ return FALSE;
+ }
+
+ FileNameInfo->FileNameLength = ShortName.Length;
+ RtlCopyMemory(FileNameInfo->FileName, ShortName.Buffer, ShortName.Length);
+
+ Status = NtSetInformationFile(hFile,
+ &IoStatusBlock, //out
+ FileNameInfo,
+ NeededSize,
+ FileShortNameInformation);
+
+ RtlFreeHeap(RtlGetProcessHeap(), 0, FileNameInfo);
+ if(!NT_SUCCESS(Status))
+ {
+ BaseSetLastNTError(Status);
+ return FALSE;
+ }
+
+ return TRUE;
}
@@ -290,27 +290,26 @@
WINAPI
SetFileShortNameA(
HANDLE hFile,
- LPCSTR lpShortName
- )
-{
- PWCHAR ShortNameW;
-
- if(IsConsoleHandle(hFile))
- {
- SetLastError(ERROR_INVALID_HANDLE);
- return FALSE;
- }
-
- if(!lpShortName)
- {
- SetLastError(ERROR_INVALID_PARAMETER);
- return FALSE;
- }
-
- if (!(ShortNameW = FilenameA2W(lpShortName, FALSE)))
- return FALSE;
-
- return SetFileShortNameW(hFile, ShortNameW);
+ LPCSTR lpShortName)
+{
+ PWCHAR ShortNameW;
+
+ if(IsConsoleHandle(hFile))
+ {
+ SetLastError(ERROR_INVALID_HANDLE);
+ return FALSE;
+ }
+
+ if(!lpShortName)
+ {
+ SetLastError(ERROR_INVALID_PARAMETER);
+ return FALSE;
+ }
+
+ if (!(ShortNameW = FilenameA2W(lpShortName, FALSE)))
+ return FALSE;
+
+ return SetFileShortNameW(hFile, ShortNameW);
}