Author: hbelusca
Date: Sat May 13 16:13:49 2017
New Revision: 74528
URL:
http://svn.reactos.org/svn/reactos?rev=74528&view=rev
Log:
Code simplifications.
Modified:
branches/setup_improvements/base/setup/usetup/filesup.c
Modified: branches/setup_improvements/base/setup/usetup/filesup.c
URL:
http://svn.reactos.org/svn/reactos/branches/setup_improvements/base/setup/u…
==============================================================================
--- branches/setup_improvements/base/setup/usetup/filesup.c [iso-8859-1] (original)
+++ branches/setup_improvements/base/setup/usetup/filesup.c [iso-8859-1] Sat May 13
16:13:49 2017
@@ -509,8 +509,7 @@
wcscat(FullName, FileName);
}
- RtlInitUnicodeString(&Name,
- FullName);
+ RtlInitUnicodeString(&Name, FullName);
InitializeObjectAttributes(&ObjectAttributes,
&Name,
@@ -524,14 +523,10 @@
&IoStatusBlock,
0,
FILE_SYNCHRONOUS_IO_NONALERT);
- if (!NT_SUCCESS(Status))
- {
- return FALSE;
- }
NtClose(FileHandle);
- return TRUE;
+ return NT_SUCCESS(Status);
}
/* EOF */