msi: The options must include a source type.
This commit is contained in:
parent
7fe6aad7fa
commit
d9a8f0b5fe
|
@ -606,6 +606,9 @@ UINT WINAPI MsiSourceListAddSourceExW( LPCWSTR szProduct, LPCWSTR szUserSid,
|
|||
if (!szSource || !*szSource)
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
|
||||
if (!(dwOptions & (MSISOURCETYPE_NETWORK | MSISOURCETYPE_URL)))
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
|
||||
if (dwOptions & MSICODE_PATCH)
|
||||
{
|
||||
FIXME("Unhandled options MSICODE_PATCH\n");
|
||||
|
|
|
@ -594,18 +594,12 @@ static void test_MsiSourceListAddSourceEx(void)
|
|||
r = pMsiSourceListAddSourceExA(prodcode, usersid,
|
||||
MSIINSTALLCONTEXT_USERUNMANAGED,
|
||||
MSICODE_PRODUCT, "source", 0);
|
||||
todo_wine
|
||||
{
|
||||
ok(r == ERROR_INVALID_PARAMETER, "Expected ERROR_INVALID_PARAMETER, got %d\n", r);
|
||||
}
|
||||
ok(r == ERROR_INVALID_PARAMETER, "Expected ERROR_INVALID_PARAMETER, got %d\n", r);
|
||||
|
||||
r = pMsiSourceListAddSourceExA(prodcode, usersid,
|
||||
MSIINSTALLCONTEXT_USERUNMANAGED,
|
||||
MSICODE_PATCH, "source", 0);
|
||||
todo_wine
|
||||
{
|
||||
ok(r == ERROR_INVALID_PARAMETER, "Expected ERROR_INVALID_PARAMETER, got %d\n", r);
|
||||
}
|
||||
ok(r == ERROR_INVALID_PARAMETER, "Expected ERROR_INVALID_PARAMETER, got %d\n", r);
|
||||
|
||||
/* NULL szSource */
|
||||
r = pMsiSourceListAddSourceExA(prodcode, usersid,
|
||||
|
|
Loading…
Reference in New Issue