mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 18:56:48 +00:00
[NTOSKRNL]
- Fix length calculation of symbolic links with reference strings attached - Fixes opening registry keys for symbolic links with reference strings (such as audio devices) svn path=/trunk/; revision=47056
This commit is contained in:
parent
0ddb991b14
commit
62b639c945
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ OpenRegistryHandlesFromSymbolicLink(IN PUNICODE_STRING SymbolicLinkName,
|
||||||
{
|
{
|
||||||
ReferenceString.Buffer[0] = L'#';
|
ReferenceString.Buffer[0] = L'#';
|
||||||
|
|
||||||
SubKeyName.Length = ReferenceString.Buffer - SubKeyName.Buffer;
|
SubKeyName.Length = (USHORT)((ULONG_PTR)(ReferenceString.Buffer) - (ULONG_PTR)SubKeyName.Buffer);
|
||||||
ReferenceString.Length = SymbolicLinkName->Length - SubKeyName.Length;
|
ReferenceString.Length = SymbolicLinkName->Length - SubKeyName.Length;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue