[ros-diffs] [weiden] 24504: Don't accidentally free the object name path in case it wasn't altered when resolving paths to handles

weiden at svn.reactos.org weiden at svn.reactos.org
Fri Oct 13 21:19:17 CEST 2006


Author: weiden
Date: Fri Oct 13 23:19:16 2006
New Revision: 24504

URL: http://svn.reactos.org/svn/reactos?rev=24504&view=rev
Log:
Don't accidentally free the object name path in case it wasn't altered when resolving paths to handles

Modified:
    trunk/reactos/dll/win32/ntmarta/ntmarta.c

Modified: trunk/reactos/dll/win32/ntmarta/ntmarta.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ntmarta/ntmarta.c?rev=24504&r1=24503&r2=24504&view=diff
==============================================================================
--- trunk/reactos/dll/win32/ntmarta/ntmarta.c (original)
+++ trunk/reactos/dll/win32/ntmarta/ntmarta.c Fri Oct 13 23:19:16 2006
@@ -823,7 +823,7 @@
     }
 
 Cleanup:
-    if (lpPath != NULL)
+    if (lpPath != NULL && lpPath != pObjectName)
     {
         LocalFree((HLOCAL)lpPath);
     }




More information about the Ros-diffs mailing list