Use MSI_QueryGetRecord in one more place.

This commit is contained in:
Mike McCormack 2005-06-02 19:40:45 +00:00 committed by Alexandre Julliard
parent d8e003801a
commit 07b19112e5
1 changed files with 1 additions and 10 deletions

View File

@ -425,20 +425,11 @@ static UINT msi_load_bitmap( MSIDATABASE *db, LPCWSTR name, IPicture **pic )
'w','h','e','r','e',' ',
'`','N','a','m','e','`',' ','=',' ','\'','%','s','\'',0
};
MSIQUERY *view = NULL;
MSIRECORD *rec = NULL;
IStream *stm = NULL;
UINT r;
r = MSI_OpenQuery( db, &view, query, name );
if( r != ERROR_SUCCESS )
return r;
MSI_ViewExecute( view, NULL );
MSI_ViewFetch( view, &rec );
MSI_ViewClose( view );
msiobj_release( &view->hdr );
rec = MSI_QueryGetRecord( db, query, name );
if( !rec )
return ERROR_FUNCTION_FAILED;