mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[MOUNTMGR] Fix setting up reparse index file name
This fixes memory smashing while attempting to volume
reparse index (we were previously trying to copy the
name on itself, in the middle of itself...).
This code won't go farther on FAT, it requires NTFS.
Now, with this, ReactOS can properly boot with MountMgr
handling DOS devices without any crash or code disabled.
Cf: what was written in 7608ac9
.
Modifications in class2, disk, and ntoskrnl are still to
be committed to enable all this.
This commit is contained in:
parent
bced3eaa25
commit
16fcf694ef
1 changed files with 1 additions and 2 deletions
|
@ -678,11 +678,10 @@ ReconcileThisDatabaseWithMasterWorker(IN PVOID Parameter)
|
|||
goto ReleaseRDS;
|
||||
}
|
||||
|
||||
|
||||
RtlCopyMemory(ReparseFile.Buffer, DeviceInformation->DeviceName.Buffer,
|
||||
DeviceInformation->DeviceName.Length);
|
||||
RtlCopyMemory((PVOID)((ULONG_PTR)ReparseFile.Buffer + DeviceInformation->DeviceName.Length),
|
||||
ReparseFile.Buffer, ReparseFile.Length);
|
||||
ReparseIndex.Buffer, ReparseIndex.Length);
|
||||
ReparseFile.Buffer[ReparseFile.Length / sizeof(WCHAR)] = UNICODE_NULL;
|
||||
|
||||
InitializeObjectAttributes(&ObjectAttributes,
|
||||
|
|
Loading…
Reference in a new issue