msi: Return ERROR_UNKNOWN_PATCH if dwOptions contains MSICODE_PATCH.
This commit is contained in:
parent
f83d049888
commit
d37ac289db
|
@ -413,7 +413,7 @@ UINT WINAPI MsiSourceListSetInfoW( LPCWSTR szProduct, LPCWSTR szUserSid,
|
|||
if (dwOptions & MSICODE_PATCH)
|
||||
{
|
||||
FIXME("Unhandled options MSICODE_PATCH\n");
|
||||
return ERROR_FUNCTION_FAILED;
|
||||
return ERROR_UNKNOWN_PATCH;
|
||||
}
|
||||
|
||||
if (szUserSid)
|
||||
|
|
|
@ -1452,23 +1452,16 @@ static void test_MsiSourceListSetInfo(void)
|
|||
r = MsiSourceListSetInfoA(prodcode, usersid,
|
||||
MSIINSTALLCONTEXT_USERUNMANAGED, MSICODE_PATCH,
|
||||
INSTALLPROPERTY_MEDIAPACKAGEPATH, "path");
|
||||
todo_wine
|
||||
{
|
||||
ok(r == ERROR_UNKNOWN_PATCH,
|
||||
"Expected ERROR_UNKNOWN_PATCH, got %d\n", r);
|
||||
}
|
||||
ok(r == ERROR_UNKNOWN_PATCH,
|
||||
"Expected ERROR_UNKNOWN_PATCH, got %d\n", r);
|
||||
|
||||
/* dwOptions is both MSICODE_PRODUCT and MSICODE_PATCH */
|
||||
r = MsiSourceListSetInfoA(prodcode, usersid,
|
||||
MSIINSTALLCONTEXT_USERUNMANAGED,
|
||||
MSICODE_PRODUCT | MSICODE_PATCH | MSISOURCETYPE_URL,
|
||||
INSTALLPROPERTY_MEDIAPACKAGEPATH, "path");
|
||||
todo_wine
|
||||
{
|
||||
ok(r == ERROR_UNKNOWN_PATCH,
|
||||
"Expected ERROR_SUCCESS, got %d\n", r);
|
||||
}
|
||||
|
||||
ok(r == ERROR_UNKNOWN_PATCH,
|
||||
"Expected ERROR_SUCCESS, got %d\n", r);
|
||||
/* dwOptions has both MSISOURCETYPE_NETWORK and MSISOURCETYPE_URL */
|
||||
r = MsiSourceListSetInfoA(prodcode, NULL,
|
||||
MSIINSTALLCONTEXT_USERUNMANAGED,
|
||||
|
|
Loading…
Reference in New Issue