mapi32: Break out of the loop as soon as MSI call succeeds.
This commit is contained in:
parent
0a4f4b23cf
commit
44c3d3288c
|
@ -878,7 +878,10 @@ BOOL WINAPI FGetComponentPath(LPCSTR component, LPCSTR qualifier, LPSTR dll_path
|
|||
if (pMsiProvideQualifiedComponentA(component, qualifier,
|
||||
install ? INSTALLMODE_DEFAULT : INSTALLMODE_EXISTING,
|
||||
dll_path, &dll_path_length) == ERROR_SUCCESS)
|
||||
{
|
||||
ret = TRUE;
|
||||
break;
|
||||
}
|
||||
|
||||
if (qualifier != lcid_ver) break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue