setupapi: Do not free stack pointers (Coverity).
This commit is contained in:
parent
a21c489f0f
commit
84a51f64ca
|
@ -607,7 +607,7 @@ BOOL WINAPI SetupGetTargetPathW( HINF hinf, PINFCONTEXT context, PCWSTR section,
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
SetLastError( ERROR_INSUFFICIENT_BUFFER );
|
SetLastError( ERROR_INSUFFICIENT_BUFFER );
|
||||||
HeapFree( GetProcessHeap(), 0, dir );
|
if (dir != systemdir) HeapFree( GetProcessHeap(), 0, dir );
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue