From 07b19112e51433cab8345d10c1f6596dd10f23b9 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Thu, 2 Jun 2005 19:40:45 +0000 Subject: [PATCH] Use MSI_QueryGetRecord in one more place. --- dlls/msi/dialog.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index 92e05f87800..40cd56ae6b2 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -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;