James Hawkins : msi: Remove a duplicated function.
Alexandre Julliard
julliard at winehq.org
Thu Nov 1 07:39:46 CDT 2007
Module: wine
Branch: master
Commit: eec9bbb12d0c92a53747298d19663187ae9204c8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=eec9bbb12d0c92a53747298d19663187ae9204c8
Author: James Hawkins <truiken at gmail.com>
Date: Thu Nov 1 03:10:47 2007 -0500
msi: Remove a duplicated function.
---
dlls/msi/action.c | 15 +--------------
1 files changed, 1 insertions(+), 14 deletions(-)
diff --git a/dlls/msi/action.c b/dlls/msi/action.c
index f79f9a4..05bb4f1 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;
More information about the wine-cvs
mailing list