mirror of
https://github.com/reactos/reactos.git
synced 2024-09-12 05:43:24 +00:00
Move the memory in RtlpDeleteData instead of copying it because the source and destination may be overlapping.
svn path=/trunk/; revision=24282
This commit is contained in:
parent
fa9c62c9a0
commit
87099f3ca6
|
@ -612,7 +612,7 @@ RtlpDeleteData(PVOID Ace,
|
||||||
{
|
{
|
||||||
if (AceSize < Offset)
|
if (AceSize < Offset)
|
||||||
{
|
{
|
||||||
RtlCopyMemory(Ace,
|
RtlMoveMemory(Ace,
|
||||||
(PVOID)((ULONG_PTR)Ace + AceSize),
|
(PVOID)((ULONG_PTR)Ace + AceSize),
|
||||||
Offset - AceSize);
|
Offset - AceSize);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue