mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:33:04 +00:00
[KERNEL32]
- Fix an invalid free in DefineDosDeviceW, found by kernel32_apitest:dosdev svn path=/trunk/; revision=63852
This commit is contained in:
parent
39f3c7d584
commit
faf7e3ec94
1 changed files with 2 additions and 1 deletions
|
@ -219,7 +219,8 @@ DefineDosDeviceW(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (NtTargetPathU.Buffer)
|
if (NtTargetPathU.Buffer &&
|
||||||
|
NtTargetPathU.Buffer != lpTargetPath)
|
||||||
{
|
{
|
||||||
RtlFreeHeap(RtlGetProcessHeap(),
|
RtlFreeHeap(RtlGetProcessHeap(),
|
||||||
0,
|
0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue