diff --git a/dlls/msi/action.c b/dlls/msi/action.c index 3a32a064c95..fd38f7adbd3 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -887,7 +887,7 @@ typedef struct { static UINT ITERATE_Actions(MSIRECORD *row, LPVOID param) { - iterate_action_param *iap= (iterate_action_param*)param; + iterate_action_param *iap = param; UINT rc; LPCWSTR cond, action; @@ -1125,7 +1125,7 @@ UINT ACTION_PerformUIAction(MSIPACKAGE *package, const WCHAR *action, UINT scrip static UINT ITERATE_CreateFolders(MSIRECORD *row, LPVOID param) { - MSIPACKAGE *package = (MSIPACKAGE*)param; + MSIPACKAGE *package = param; LPCWSTR dir; LPWSTR full_path; MSIRECORD *uirow; @@ -1307,7 +1307,7 @@ static UINT add_feature_child( MSIFEATURE *parent, MSIFEATURE *child ) static UINT iterate_load_featurecomponents(MSIRECORD *row, LPVOID param) { - _ilfs* ilfs= (_ilfs*)param; + _ilfs* ilfs = param; LPCWSTR component; MSICOMPONENT *comp; @@ -1345,7 +1345,7 @@ static MSIFEATURE *find_feature_by_name( MSIPACKAGE *package, LPCWSTR name ) static UINT load_feature(MSIRECORD * row, LPVOID param) { - MSIPACKAGE* package = (MSIPACKAGE*)param; + MSIPACKAGE* package = param; MSIFEATURE* feature; static const WCHAR Query1[] = {'S','E','L','E','C','T',' ', @@ -1404,7 +1404,7 @@ static UINT load_feature(MSIRECORD * row, LPVOID param) static UINT find_feature_children(MSIRECORD * row, LPVOID param) { - MSIPACKAGE* package = (MSIPACKAGE*)param; + MSIPACKAGE* package = param; MSIFEATURE *parent, *child; child = find_feature_by_name( package, MSI_RecordGetString( row, 1 ) ); @@ -1497,7 +1497,7 @@ done: static UINT load_file(MSIRECORD *row, LPVOID param) { - MSIPACKAGE* package = (MSIPACKAGE*)param; + MSIPACKAGE* package = param; LPCWSTR component; MSIFILE *file; @@ -2033,7 +2033,7 @@ UINT MSI_SetFeatureStates(MSIPACKAGE *package) static UINT ITERATE_CostFinalizeDirectories(MSIRECORD *row, LPVOID param) { - MSIPACKAGE *package = (MSIPACKAGE*)param; + MSIPACKAGE *package = param; LPCWSTR name; LPWSTR path; MSIFOLDER *f; @@ -2058,7 +2058,7 @@ static UINT ITERATE_CostFinalizeDirectories(MSIRECORD *row, LPVOID param) static UINT ITERATE_CostFinalizeConditions(MSIRECORD *row, LPVOID param) { - MSIPACKAGE *package = (MSIPACKAGE*)param; + MSIPACKAGE *package = param; LPCWSTR name; MSIFEATURE *feature; @@ -2391,7 +2391,7 @@ static LPSTR parse_value(MSIPACKAGE *package, LPCWSTR value, DWORD *type, static UINT ITERATE_WriteRegistryValues(MSIRECORD *row, LPVOID param) { - MSIPACKAGE *package = (MSIPACKAGE*)param; + MSIPACKAGE *package = param; static const WCHAR szHCR[] = {'H','K','E','Y','_','C','L','A','S','S','E','S','_', 'R','O','O','T','\\',0}; @@ -2640,7 +2640,7 @@ static UINT ACTION_InstallValidate(MSIPACKAGE *package) static UINT ITERATE_LaunchConditions(MSIRECORD *row, LPVOID param) { - MSIPACKAGE* package = (MSIPACKAGE*)param; + MSIPACKAGE* package = param; LPCWSTR cond = NULL; LPCWSTR message = NULL; UINT r; @@ -3052,7 +3052,7 @@ static BOOL CALLBACK Typelib_EnumResNameProc( HMODULE hModule, LPCWSTR lpszType, static UINT ITERATE_RegisterTypeLibraries(MSIRECORD *row, LPVOID param) { - MSIPACKAGE* package = (MSIPACKAGE*)param; + MSIPACKAGE* package = param; LPCWSTR component; MSICOMPONENT *comp; MSIFILE *file; @@ -3168,7 +3168,7 @@ static UINT ACTION_RegisterTypeLibraries(MSIPACKAGE *package) static UINT ITERATE_CreateShortcuts(MSIRECORD *row, LPVOID param) { - MSIPACKAGE *package = (MSIPACKAGE*)param; + MSIPACKAGE *package = param; LPWSTR target_file, target_folder, filename; LPCWSTR buffer, extension; MSICOMPONENT *comp; @@ -3338,7 +3338,7 @@ static UINT ACTION_CreateShortcuts(MSIPACKAGE *package) static UINT ITERATE_PublishIcon(MSIRECORD *row, LPVOID param) { - MSIPACKAGE* package = (MSIPACKAGE*)param; + MSIPACKAGE* package = param; HANDLE the_file; LPWSTR FilePath; LPCWSTR FileName; @@ -3708,7 +3708,7 @@ end: static UINT ITERATE_WriteIniValues(MSIRECORD *row, LPVOID param) { - MSIPACKAGE *package = (MSIPACKAGE*)param; + MSIPACKAGE *package = param; LPCWSTR component, section, key, value, identifier, dirproperty; LPWSTR deformated_section, deformated_key, deformated_value; LPWSTR folder, filename, fullname = NULL; @@ -3834,7 +3834,7 @@ static UINT ACTION_WriteIniValues(MSIPACKAGE *package) static UINT ITERATE_SelfRegModules(MSIRECORD *row, LPVOID param) { - MSIPACKAGE *package = (MSIPACKAGE*)param; + MSIPACKAGE *package = param; LPCWSTR filename; LPWSTR FullName; MSIFILE *file; @@ -4544,7 +4544,7 @@ static UINT ACTION_ExecuteAction(MSIPACKAGE *package) static UINT ITERATE_PublishComponent(MSIRECORD *rec, LPVOID param) { - MSIPACKAGE *package = (MSIPACKAGE*)param; + MSIPACKAGE *package = param; LPCWSTR compgroupid=NULL; LPCWSTR feature=NULL; LPCWSTR text = NULL; @@ -4640,7 +4640,7 @@ static UINT ACTION_PublishComponents(MSIPACKAGE *package) static UINT ITERATE_InstallService(MSIRECORD *rec, LPVOID param) { - MSIPACKAGE *package = (MSIPACKAGE*)param; + MSIPACKAGE *package = param; MSIRECORD *row; MSIFILE *file; SC_HANDLE hscm, service = NULL; @@ -4781,7 +4781,7 @@ static LPCWSTR *msi_service_args_to_vector(LPWSTR args, DWORD *numargs) static UINT ITERATE_StartService(MSIRECORD *rec, LPVOID param) { - MSIPACKAGE *package = (MSIPACKAGE *)param; + MSIPACKAGE *package = param; MSICOMPONENT *comp; SC_HANDLE scm, service = NULL; LPCWSTR name, *vector = NULL; @@ -4894,7 +4894,7 @@ error: static UINT ITERATE_StopService(MSIRECORD *rec, LPVOID param) { - MSIPACKAGE *package = (MSIPACKAGE *)param; + MSIPACKAGE *package = param; MSICOMPONENT *comp; SERVICE_STATUS status; SERVICE_STATUS_PROCESS ssp; @@ -4991,7 +4991,7 @@ static MSIFILE *msi_find_file( MSIPACKAGE *package, LPCWSTR filename ) static UINT ITERATE_InstallODBCDriver( MSIRECORD *rec, LPVOID param ) { - MSIPACKAGE *package = (MSIPACKAGE*)param; + MSIPACKAGE *package = param; LPWSTR driver, driver_path, ptr; WCHAR outpath[MAX_PATH]; MSIFILE *driver_file, *setup_file; @@ -5057,7 +5057,7 @@ static UINT ITERATE_InstallODBCDriver( MSIRECORD *rec, LPVOID param ) static UINT ITERATE_InstallODBCTranslator( MSIRECORD *rec, LPVOID param ) { - MSIPACKAGE *package = (MSIPACKAGE*)param; + MSIPACKAGE *package = param; LPWSTR translator, translator_path, ptr; WCHAR outpath[MAX_PATH]; MSIFILE *translator_file, *setup_file; @@ -5606,7 +5606,7 @@ static BOOL move_files_wildcard(LPWSTR source, LPWSTR dest, int options) { file = LIST_ENTRY(list_head(&files.entry), FILE_LIST, entry); - msi_move_file((LPCWSTR)file->source, (LPCWSTR)file->dest, options); + msi_move_file(file->source, file->dest, options); list_remove(&file->entry); free_file_entry(file); @@ -5866,7 +5866,7 @@ typedef struct tagASSEMBLY_NAME static UINT parse_assembly_name(MSIRECORD *rec, LPVOID param) { - ASSEMBLY_NAME *asmname = (ASSEMBLY_NAME *)param; + ASSEMBLY_NAME *asmname = param; LPCWSTR name = MSI_RecordGetString(rec, 2); LPWSTR val = msi_dup_record_field(rec, 3); @@ -5986,7 +5986,7 @@ done: static UINT load_assembly(MSIRECORD *rec, LPVOID param) { - ASSEMBLY_LIST *list = (ASSEMBLY_LIST *)param; + ASSEMBLY_LIST *list = param; MSIASSEMBLY *assembly; assembly = msi_alloc_zero(sizeof(MSIASSEMBLY)); @@ -6091,7 +6091,7 @@ static BOOL installassembly_cb(MSIPACKAGE *package, LPCWSTR file, DWORD action, { MSIASSEMBLY *assembly; WCHAR temppath[MAX_PATH]; - struct list *assemblies = (struct list *)user; + struct list *assemblies = user; UINT r; if (!find_assembly(assemblies, file, &assembly)) diff --git a/dlls/msi/appsearch.c b/dlls/msi/appsearch.c index dc885bc6174..18a031c87c9 100644 --- a/dlls/msi/appsearch.c +++ b/dlls/msi/appsearch.c @@ -639,8 +639,7 @@ static UINT ACTION_FileVersionMatches(const MSISIGNATURE *sig, LPCWSTR filePath, VerQueryValueW(buf, rootW, &subBlock, &versionLen); if (subBlock) { - VS_FIXEDFILEINFO *info = - (VS_FIXEDFILEINFO *)subBlock; + VS_FIXEDFILEINFO *info = subBlock; TRACE("Comparing file version %d.%d.%d.%d:\n", HIWORD(info->dwFileVersionMS), diff --git a/dlls/msi/classes.c b/dlls/msi/classes.c index cf889c1a2fc..483d65c3d69 100644 --- a/dlls/msi/classes.c +++ b/dlls/msi/classes.c @@ -486,7 +486,7 @@ static MSIEXTENSION *load_given_extension( MSIPACKAGE *package, LPCWSTR name ) static UINT iterate_load_verb(MSIRECORD *row, LPVOID param) { - MSIPACKAGE* package = (MSIPACKAGE*)param; + MSIPACKAGE* package = param; MSIVERB *verb; LPCWSTR buffer; MSIEXTENSION *extension; @@ -527,7 +527,7 @@ static UINT iterate_all_classes(MSIRECORD *rec, LPVOID param) LPCWSTR clsid; LPCWSTR context; LPCWSTR buffer; - MSIPACKAGE* package =(MSIPACKAGE*)param; + MSIPACKAGE* package = param; MSICLASS *cls; BOOL match = FALSE; @@ -577,7 +577,7 @@ static UINT iterate_all_extensions(MSIRECORD *rec, LPVOID param) MSICOMPONENT *comp; LPCWSTR buffer; LPCWSTR extension; - MSIPACKAGE* package =(MSIPACKAGE*)param; + MSIPACKAGE* package = param; BOOL match = FALSE; MSIEXTENSION *ext; @@ -622,7 +622,7 @@ static VOID load_all_extensions(MSIPACKAGE *package) static UINT iterate_all_progids(MSIRECORD *rec, LPVOID param) { LPCWSTR buffer; - MSIPACKAGE* package =(MSIPACKAGE*)param; + MSIPACKAGE* package = param; buffer = MSI_RecordGetString(rec,1); load_given_progid(package,buffer); @@ -666,7 +666,7 @@ static VOID load_all_verbs(MSIPACKAGE *package) static UINT iterate_all_mimes(MSIRECORD *rec, LPVOID param) { LPCWSTR buffer; - MSIPACKAGE* package =(MSIPACKAGE*)param; + MSIPACKAGE* package = param; buffer = MSI_RecordGetString(rec,1); load_given_mime(package,buffer); diff --git a/dlls/msi/database.c b/dlls/msi/database.c index 7fe57adfebc..cce271769e7 100644 --- a/dlls/msi/database.c +++ b/dlls/msi/database.c @@ -1202,7 +1202,7 @@ done: static UINT merge_diff_row(MSIRECORD *rec, LPVOID param) { - MERGEDATA *data = (MERGEDATA *)param; + MERGEDATA *data = param; MERGETABLE *table = data->curtable; MERGEROW *mergerow; MSIQUERY *dbview; @@ -1257,7 +1257,7 @@ done: static UINT merge_diff_tables(MSIRECORD *rec, LPVOID param) { - MERGEDATA *data = (MERGEDATA *)param; + MERGEDATA *data = param; MERGETABLE *table; MSIQUERY *dbview; MSIQUERY *mergeview = NULL; @@ -1562,7 +1562,7 @@ static HRESULT WINAPI mrd_IsTablePersistent( IWineMsiRemoteDatabase *iface, BSTR table, MSICONDITION *persistent ) { msi_remote_database_impl *This = mrd_from_IWineMsiRemoteDatabase( iface ); - *persistent = MsiDatabaseIsTablePersistentW(This->database, (LPWSTR)table); + *persistent = MsiDatabaseIsTablePersistentW(This->database, table); return S_OK; } @@ -1570,7 +1570,7 @@ static HRESULT WINAPI mrd_GetPrimaryKeys( IWineMsiRemoteDatabase *iface, BSTR table, MSIHANDLE *keys ) { msi_remote_database_impl *This = mrd_from_IWineMsiRemoteDatabase( iface ); - UINT r = MsiDatabaseGetPrimaryKeysW(This->database, (LPWSTR)table, keys); + UINT r = MsiDatabaseGetPrimaryKeysW(This->database, table, keys); return HRESULT_FROM_WIN32(r); } @@ -1586,7 +1586,7 @@ static HRESULT WINAPI mrd_OpenView( IWineMsiRemoteDatabase *iface, BSTR query, MSIHANDLE *view ) { msi_remote_database_impl *This = mrd_from_IWineMsiRemoteDatabase( iface ); - UINT r = MsiDatabaseOpenViewW(This->database, (LPWSTR)query, view); + UINT r = MsiDatabaseOpenViewW(This->database, query, view); return HRESULT_FROM_WIN32(r); } diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index 9649201feb3..df79a372668 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -1725,7 +1725,7 @@ static UINT msi_dialog_pathedit_control( msi_dialog *dialog, MSIRECORD *rec ) /* radio buttons are a bit different from normal controls */ static UINT msi_dialog_create_radiobutton( MSIRECORD *rec, LPVOID param ) { - radio_button_group_descr *group = (radio_button_group_descr *)param; + radio_button_group_descr *group = param; msi_dialog *dialog = group->dialog; msi_control *control; LPCWSTR prop, text, name; @@ -3032,7 +3032,7 @@ static LRESULT msi_dialog_oncreate( HWND hwnd, LPCREATESTRUCTW cs ) 'D','e','f','a','u','l','t','U','I','F','o','n','t',0 }; static const WCHAR dfv[] = { 'M','S',' ','S','h','e','l','l',' ','D','l','g',0 }; - msi_dialog *dialog = (msi_dialog*) cs->lpCreateParams; + msi_dialog *dialog = cs->lpCreateParams; MSIRECORD *rec = NULL; LPWSTR title = NULL; RECT pos; @@ -3152,7 +3152,7 @@ struct rec_list static UINT add_rec_to_list( MSIRECORD *rec, LPVOID param ) { struct rec_list *add_rec; - struct list *records = (struct list *)param; + struct list *records = param; msiobj_addref( &rec->hdr ); diff --git a/dlls/msi/files.c b/dlls/msi/files.c index 5036efd1b26..01a80b7437c 100644 --- a/dlls/msi/files.c +++ b/dlls/msi/files.c @@ -323,7 +323,7 @@ UINT ACTION_InstallFiles(MSIPACKAGE *package) static UINT ITERATE_DuplicateFiles(MSIRECORD *row, LPVOID param) { - MSIPACKAGE *package = (MSIPACKAGE*)param; + MSIPACKAGE *package = param; WCHAR dest_name[0x100]; LPWSTR dest_path, dest; LPCWSTR file_key, component; @@ -468,7 +468,7 @@ static BOOL verify_comp_for_removal(MSICOMPONENT *comp, UINT install_mode) static UINT ITERATE_RemoveFiles(MSIRECORD *row, LPVOID param) { - MSIPACKAGE *package = (MSIPACKAGE*)param; + MSIPACKAGE *package = param; MSICOMPONENT *comp; LPCWSTR component, filename, dirprop; UINT install_mode; diff --git a/dlls/msi/font.c b/dlls/msi/font.c index b0c43f3672e..085d400a7b9 100644 --- a/dlls/msi/font.c +++ b/dlls/msi/font.c @@ -170,7 +170,7 @@ end: static UINT ITERATE_RegisterFonts(MSIRECORD *row, LPVOID param) { - MSIPACKAGE *package = (MSIPACKAGE*)param; + MSIPACKAGE *package = param; LPWSTR name; LPCWSTR filename; MSIFILE *file; diff --git a/dlls/msi/handle.c b/dlls/msi/handle.c index 91629ef16d5..8d43775464d 100644 --- a/dlls/msi/handle.c +++ b/dlls/msi/handle.c @@ -174,7 +174,7 @@ void *msihandle2msiinfo(MSIHANDLE handle, UINT type) out: LeaveCriticalSection( &MSI_handle_cs ); - return (void*) ret; + return ret; } IUnknown *msi_get_remote( MSIHANDLE handle ) diff --git a/dlls/msi/media.c b/dlls/msi/media.c index d7c19c58993..d5f1a1dba77 100644 --- a/dlls/msi/media.c +++ b/dlls/msi/media.c @@ -260,7 +260,7 @@ static UINT CDECL msi_media_get_disk_info(MSIPACKAGE *package, MSIMEDIAINFO *mi) static INT_PTR cabinet_partial_file(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION pfdin) { - MSICABDATA *data = (MSICABDATA *)pfdin->pv; + MSICABDATA *data = pfdin->pv; data->mi->is_continuous = FALSE; return 0; } @@ -268,7 +268,7 @@ static INT_PTR cabinet_partial_file(FDINOTIFICATIONTYPE fdint, static INT_PTR cabinet_next_cabinet(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION pfdin) { - MSICABDATA *data = (MSICABDATA *)pfdin->pv; + MSICABDATA *data = pfdin->pv; MSIMEDIAINFO *mi = data->mi; LPWSTR cab = strdupAtoW(pfdin->psz1); INT_PTR res = -1; @@ -314,7 +314,7 @@ done: static INT_PTR cabinet_copy_file(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION pfdin) { - MSICABDATA *data = (MSICABDATA*)pfdin->pv; + MSICABDATA *data = pfdin->pv; HANDLE handle = 0; LPWSTR path = NULL; DWORD attrs; @@ -349,7 +349,7 @@ done: static INT_PTR cabinet_close_file_info(FDINOTIFICATIONTYPE fdint, PFDINOTIFICATION pfdin) { - MSICABDATA *data = (MSICABDATA*)pfdin->pv; + MSICABDATA *data = pfdin->pv; FILETIME ft; FILETIME ftLocal; HANDLE handle = (HANDLE)pfdin->hf; diff --git a/dlls/msi/msi_main.c b/dlls/msi/msi_main.c index 25fb18b0fc6..9474b2a9597 100644 --- a/dlls/msi/msi_main.c +++ b/dlls/msi/msi_main.c @@ -201,19 +201,19 @@ HRESULT WINAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv) if ( IsEqualCLSID (rclsid, &CLSID_IMsiServerX2) ) { - *ppv = (LPVOID) &MsiServer_CF; + *ppv = &MsiServer_CF; return S_OK; } if ( IsEqualCLSID (rclsid, &CLSID_IWineMsiRemoteCustomAction) ) { - *ppv = (LPVOID) &WineMsiCustomRemote_CF; + *ppv = &WineMsiCustomRemote_CF; return S_OK; } if ( IsEqualCLSID (rclsid, &CLSID_IWineMsiRemotePackage) ) { - *ppv = (LPVOID) &WineMsiRemotePackage_CF; + *ppv = &WineMsiRemotePackage_CF; return S_OK; } diff --git a/dlls/msi/package.c b/dlls/msi/package.c index e2e183e5621..6ae487014c6 100644 --- a/dlls/msi/package.c +++ b/dlls/msi/package.c @@ -1692,7 +1692,7 @@ static HRESULT WINAPI mrp_GetProperty( IWineMsiRemotePackage *iface, BSTR proper static HRESULT WINAPI mrp_SetProperty( IWineMsiRemotePackage *iface, BSTR property, BSTR value ) { msi_remote_package_impl* This = mrp_from_IWineMsiRemotePackage( iface ); - UINT r = MsiSetPropertyW(This->package, (LPWSTR)property, (LPWSTR)value); + UINT r = MsiSetPropertyW(This->package, property, value); return HRESULT_FROM_WIN32(r); } @@ -1706,14 +1706,14 @@ static HRESULT WINAPI mrp_ProcessMessage( IWineMsiRemotePackage *iface, INSTALLM static HRESULT WINAPI mrp_DoAction( IWineMsiRemotePackage *iface, BSTR action ) { msi_remote_package_impl* This = mrp_from_IWineMsiRemotePackage( iface ); - UINT r = MsiDoActionW(This->package, (LPWSTR)action); + UINT r = MsiDoActionW(This->package, action); return HRESULT_FROM_WIN32(r); } static HRESULT WINAPI mrp_Sequence( IWineMsiRemotePackage *iface, BSTR table, int sequence ) { msi_remote_package_impl* This = mrp_from_IWineMsiRemotePackage( iface ); - UINT r = MsiSequenceW(This->package, (LPWSTR)table, sequence); + UINT r = MsiSequenceW(This->package, table, sequence); return HRESULT_FROM_WIN32(r); } @@ -1727,7 +1727,7 @@ static HRESULT WINAPI mrp_GetTargetPath( IWineMsiRemotePackage *iface, BSTR fold static HRESULT WINAPI mrp_SetTargetPath( IWineMsiRemotePackage *iface, BSTR folder, BSTR value) { msi_remote_package_impl* This = mrp_from_IWineMsiRemotePackage( iface ); - UINT r = MsiSetTargetPathW(This->package, (LPWSTR)folder, (LPWSTR)value); + UINT r = MsiSetTargetPathW(This->package, folder, value); return HRESULT_FROM_WIN32(r); } @@ -1749,14 +1749,14 @@ static HRESULT WINAPI mrp_GetFeatureState( IWineMsiRemotePackage *iface, BSTR fe INSTALLSTATE *installed, INSTALLSTATE *action ) { msi_remote_package_impl* This = mrp_from_IWineMsiRemotePackage( iface ); - UINT r = MsiGetFeatureStateW(This->package, (LPWSTR)feature, installed, action); + UINT r = MsiGetFeatureStateW(This->package, feature, installed, action); return HRESULT_FROM_WIN32(r); } static HRESULT WINAPI mrp_SetFeatureState( IWineMsiRemotePackage *iface, BSTR feature, INSTALLSTATE state ) { msi_remote_package_impl* This = mrp_from_IWineMsiRemotePackage( iface ); - UINT r = MsiSetFeatureStateW(This->package, (LPWSTR)feature, state); + UINT r = MsiSetFeatureStateW(This->package, feature, state); return HRESULT_FROM_WIN32(r); } @@ -1764,14 +1764,14 @@ static HRESULT WINAPI mrp_GetComponentState( IWineMsiRemotePackage *iface, BSTR INSTALLSTATE *installed, INSTALLSTATE *action ) { msi_remote_package_impl* This = mrp_from_IWineMsiRemotePackage( iface ); - UINT r = MsiGetComponentStateW(This->package, (LPWSTR)component, installed, action); + UINT r = MsiGetComponentStateW(This->package, component, installed, action); return HRESULT_FROM_WIN32(r); } static HRESULT WINAPI mrp_SetComponentState( IWineMsiRemotePackage *iface, BSTR component, INSTALLSTATE state ) { msi_remote_package_impl* This = mrp_from_IWineMsiRemotePackage( iface ); - UINT r = MsiSetComponentStateW(This->package, (LPWSTR)component, state); + UINT r = MsiSetComponentStateW(This->package, component, state); return HRESULT_FROM_WIN32(r); } @@ -1809,7 +1809,7 @@ static HRESULT WINAPI mrp_FormatRecord( IWineMsiRemotePackage *iface, MSIHANDLE static HRESULT WINAPI mrp_EvaluateCondition( IWineMsiRemotePackage *iface, BSTR condition ) { msi_remote_package_impl* This = mrp_from_IWineMsiRemotePackage( iface ); - UINT r = MsiEvaluateConditionW(This->package, (LPWSTR)condition); + UINT r = MsiEvaluateConditionW(This->package, condition); return HRESULT_FROM_WIN32(r); } diff --git a/dlls/msi/registry.c b/dlls/msi/registry.c index c06d732c330..9a43b8d1943 100644 --- a/dlls/msi/registry.c +++ b/dlls/msi/registry.c @@ -475,7 +475,7 @@ static UINT get_user_sid(LPWSTR *usersid) return ERROR_FUNCTION_FAILED; size = sizeof(buf); - if (!GetTokenInformation(token, TokenUser, (void *)buf, size, &size)) { + if (!GetTokenInformation(token, TokenUser, buf, size, &size)) { CloseHandle(token); return ERROR_FUNCTION_FAILED; } diff --git a/dlls/msi/upgrade.c b/dlls/msi/upgrade.c index d86f9738c7a..f5f9094f1be 100644 --- a/dlls/msi/upgrade.c +++ b/dlls/msi/upgrade.c @@ -101,7 +101,7 @@ static void append_productcode(MSIPACKAGE* package, LPCWSTR action_property, static UINT ITERATE_FindRelatedProducts(MSIRECORD *rec, LPVOID param) { - MSIPACKAGE *package = (MSIPACKAGE*)param; + MSIPACKAGE *package = param; WCHAR product[GUID_SIZE]; DWORD index = 0; DWORD attributes = 0;