Skip to content
Snippets Groups Projects
Commit 2fbe8d23 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard
Browse files

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

parent 9598a509
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment