msi: Return ERROR_UNKNOWN_PATCH if dwOptions contains MSICODE_PATCH.

This commit is contained in:
James Hawkins 2008-02-19 02:08:55 -06:00 committed by Alexandre Julliard
parent f83d049888
commit d37ac289db
2 changed files with 5 additions and 12 deletions

View File

@ -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)

View File

@ -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,