MSI: use MSI_QueryGetRecord in one more place
Mike McCormack
mike at codeweavers.com
Thu Jun 2 11:05:58 CDT 2005
ChangeLog:
* use MSI_QueryGetRecord in one more place
-------------- next part --------------
Index: dlls/msi/dialog.c
===================================================================
RCS file: /home/wine/wine/dlls/msi/dialog.c,v
retrieving revision 1.17
diff -u -p -r1.17 dialog.c
--- dlls/msi/dialog.c 2 Jun 2005 10:29:28 -0000 1.17
+++ dlls/msi/dialog.c 2 Jun 2005 16:02:17 -0000
@@ -425,20 +425,11 @@ static UINT msi_load_bitmap( MSIDATABASE
'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;
More information about the wine-patches
mailing list