mirror of
https://github.com/reactos/reactos.git
synced 2024-07-31 00:28:56 +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
|
@ -219,7 +219,8 @@ DefineDosDeviceW(
|
|||
}
|
||||
}
|
||||
|
||||
if (NtTargetPathU.Buffer)
|
||||
if (NtTargetPathU.Buffer &&
|
||||
NtTargetPathU.Buffer != lpTargetPath)
|
||||
{
|
||||
RtlFreeHeap(RtlGetProcessHeap(),
|
||||
0,
|
||||
|
|
Loading…
Reference in a new issue