mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 21:06:17 +00:00
[SETUPLIB][USETUP] Minor improvements.
- Use adequate access flag when opening symbolic links. - Simplify the prototype of UpdateRegistry() since now both Setup INF handle and settings lists are inside the USETUP_DATA structure.
This commit is contained in:
parent
13998a15c9
commit
1b0c26e21c
4 changed files with 16 additions and 27 deletions
|
@ -616,7 +616,7 @@ ResolveArcNameNtSymLink(
|
|||
DirectoryHandle,
|
||||
NULL);
|
||||
Status = NtOpenSymbolicLinkObject(&LinkHandle,
|
||||
SYMBOLIC_LINK_ALL_ACCESS,
|
||||
SYMBOLIC_LINK_QUERY,
|
||||
&ObjectAttributes);
|
||||
|
||||
/* Close the \ArcName object directory handle */
|
||||
|
@ -632,8 +632,9 @@ ResolveArcNameNtSymLink(
|
|||
/* Reserve one WCHAR for the NULL-termination */
|
||||
NtName->MaximumLength -= sizeof(UNICODE_NULL);
|
||||
|
||||
/* Resolve the link */
|
||||
/* Resolve the link and close its handle */
|
||||
Status = NtQuerySymbolicLinkObject(LinkHandle, NtName, NULL);
|
||||
NtClose(LinkHandle);
|
||||
|
||||
/* Restore the NULL-termination */
|
||||
NtName->MaximumLength += sizeof(UNICODE_NULL);
|
||||
|
@ -650,7 +651,6 @@ ResolveArcNameNtSymLink(
|
|||
NtName->Buffer[NtName->Length / sizeof(WCHAR)] = UNICODE_NULL;
|
||||
}
|
||||
|
||||
NtClose(LinkHandle);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue