mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:13:03 +00:00
[SETUPLIB][USETUP] Bring some suggestions from PR #59 in.
- Use OBJ_CASE_INSENSITIVE when initializing object attributes (no actual reason why to keep case sensitivity there). - Check the success of a RtlStringCchPrintfW call in EnumerateReactOSEntries(). - Explicitly check for returned STATUS_NOT_SUPPORTED from ChkdskPartition() or FormatPartition(), and display an appropriate error message. - Remove some left-over comments but also explain why I kept some commented code (mainly for future reference).
This commit is contained in:
parent
a7a11dd60d
commit
765994c9e3
7 changed files with 99 additions and 54 deletions
|
@ -212,8 +212,8 @@ InstallSetupInfFile(
|
|||
PINICACHE UnattendCache;
|
||||
PINICACHEITERATOR Iterator;
|
||||
#else
|
||||
// PCWSTR CrLf = L"\r\n";
|
||||
PCSTR CrLf = "\r\n";
|
||||
// WCHAR CrLf[] = {L'\r', L'\n'};
|
||||
CHAR CrLf[] = {'\r', '\n'};
|
||||
HANDLE FileHandle, UnattendFileHandle, SectionHandle;
|
||||
FILE_STANDARD_INFORMATION FileInfo;
|
||||
ULONG FileSize;
|
||||
|
@ -360,7 +360,7 @@ Quit:
|
|||
NULL,
|
||||
&IoStatusBlock,
|
||||
(PVOID)CrLf,
|
||||
2 * sizeof(CHAR), // 2 * sizeof(WCHAR),
|
||||
sizeof(CrLf),
|
||||
&FileInfo.EndOfFile,
|
||||
NULL);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue