don't free memory which is not allocated yet

Fix for Coverity error CID: 789.

svn path=/trunk/; revision=36411
This commit is contained in:
Christoph von Wittich 2008-09-23 07:05:18 +00:00
parent 2aabf8b66d
commit cb7fa454fa

View file

@ -250,7 +250,6 @@ CreateUserProfileW (PSID Sid,
if (!AppendSystemPostfix (szUserProfilePath, MAX_PATH))
{
DPRINT1("AppendSystemPostfix() failed\n", GetLastError());
LocalFree ((HLOCAL)SidString);
return FALSE;
}