mirror of
https://github.com/reactos/reactos.git
synced 2024-08-05 11:00:55 +00:00
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:
parent
e53f089662
commit
ff377bd3d2
|
@ -823,7 +823,7 @@ FailOpenService:
|
||||||
}
|
}
|
||||||
|
|
||||||
Cleanup:
|
Cleanup:
|
||||||
if (lpPath != NULL)
|
if (lpPath != NULL && lpPath != pObjectName)
|
||||||
{
|
{
|
||||||
LocalFree((HLOCAL)lpPath);
|
LocalFree((HLOCAL)lpPath);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue