Commit f241daef authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

msi: Always delete temp files after creating them.

parent 6914c474
......@@ -505,10 +505,10 @@ static HANDLE msi_load_image( MSIDATABASE *db, LPCWSTR name, UINT type,
if( r == ERROR_SUCCESS )
{
himage = LoadImageW( 0, tmp, type, cx, cy, flags );
DeleteFileW( tmp );
}
msiobj_release( &rec->hdr );
}
DeleteFileW( tmp );
msi_free( tmp );
return himage;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment