Don't accidentally free the object name path in case it wasn't altered when resolving paths to handles

svn path=/trunk/; revision=24504
This commit is contained in:
Thomas Bluemel 2006-10-13 19:19:16 +00:00
parent e53f089662
commit ff377bd3d2

View file

@ -823,7 +823,7 @@ FailOpenService:
}
Cleanup:
if (lpPath != NULL)
if (lpPath != NULL && lpPath != pObjectName)
{
LocalFree((HLOCAL)lpPath);
}