msi: Fix potential NULL pointer dereference in ILockBytes_Release (Coverity).

This commit is contained in:
Nikolay Sivov 2009-01-24 18:47:33 +03:00 committed by Alexandre Julliard
parent 9598a50916
commit 2fbe8d23eb
1 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ static UINT STORAGES_get_row( struct tagMSIVIEW *view, UINT row, MSIRECORD **rec
static HRESULT stream_to_storage(IStream *stm, IStorage **stg)
{
ILockBytes *lockbytes;
ILockBytes *lockbytes = NULL;
STATSTG stat;
LPVOID data;
HRESULT hr;
@ -177,7 +177,7 @@ static HRESULT stream_to_storage(IStream *stm, IStorage **stg)
done:
msi_free(data);
ILockBytes_Release(lockbytes);
if (lockbytes) ILockBytes_Release(lockbytes);
return hr;
}