mapi32: Break out of the loop as soon as MSI call succeeds.

oldstable
Dmitry Timoshkov 2006-05-26 13:35:47 +09:00 committed by Alexandre Julliard
parent 0a4f4b23cf
commit 44c3d3288c
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}