From eec9bbb12d0c92a53747298d19663187ae9204c8 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Thu, 1 Nov 2007 03:10:47 -0500 Subject: [PATCH] msi: Remove a duplicated function. --- dlls/msi/action.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index f79f9a4f81c..05bb4f1f528 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -4441,19 +4441,6 @@ static LPCWSTR *msi_service_args_to_vector(LPCWSTR name, LPWSTR args, DWORD *num return vector; } -static MSICOMPONENT *msi_find_component( MSIPACKAGE *package, LPCWSTR component ) -{ - MSICOMPONENT *comp; - - LIST_FOR_EACH_ENTRY(comp, &package->components, MSICOMPONENT, entry) - { - if (!lstrcmpW(comp->Component, component)) - return comp; - } - - return NULL; -} - static UINT ITERATE_StartService(MSIRECORD *rec, LPVOID param) { MSIPACKAGE *package = (MSIPACKAGE *)param; @@ -4464,7 +4451,7 @@ static UINT ITERATE_StartService(MSIRECORD *rec, LPVOID param) DWORD event, numargs; UINT r = ERROR_FUNCTION_FAILED; - comp = msi_find_component(package, MSI_RecordGetString(rec, 6)); + comp = get_loaded_component(package, MSI_RecordGetString(rec, 6)); if (!comp || comp->Action == INSTALLSTATE_UNKNOWN || comp->Action == INSTALLSTATE_ABSENT) return ERROR_SUCCESS;