Author: tfaber
Date: Sun Aug 10 16:23:05 2014
New Revision: 63852
URL:
http://svn.reactos.org/svn/reactos?rev=63852&view=rev
Log:
[KERNEL32]
- Fix an invalid free in DefineDosDeviceW, found by kernel32_apitest:dosdev
Modified:
trunk/reactos/dll/win32/kernel32/client/dosdev.c
Modified: trunk/reactos/dll/win32/kernel32/client/dosdev.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/dosdev.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/dosdev.c [iso-8859-1] Sun Aug 10 16:23:05
2014
@@ -219,7 +219,8 @@
}
}
- if (NtTargetPathU.Buffer)
+ if (NtTargetPathU.Buffer &&
+ NtTargetPathU.Buffer != lpTargetPath)
{
RtlFreeHeap(RtlGetProcessHeap(),
0,