setupapi: Do not free stack pointers (Coverity).

This commit is contained in:
Marcus Meissner 2014-01-01 19:53:26 +01:00 committed by Alexandre Julliard
parent a21c489f0f
commit 84a51f64ca
1 changed files with 1 additions and 1 deletions

View File

@ -607,7 +607,7 @@ BOOL WINAPI SetupGetTargetPathW( HINF hinf, PINFCONTEXT context, PCWSTR section,
else
{
SetLastError( ERROR_INSUFFICIENT_BUFFER );
HeapFree( GetProcessHeap(), 0, dir );
if (dir != systemdir) HeapFree( GetProcessHeap(), 0, dir );
return FALSE;
}
}