msi: Return the error from OpenSourceKey.
This commit is contained in:
parent
266ee0f571
commit
861ae27a4f
|
@ -617,7 +617,7 @@ UINT WINAPI MsiSourceListAddSourceExW( LPCWSTR szProduct, LPCWSTR szUserSid,
|
|||
rc = OpenSourceKey(szProduct, &sourcekey, MSICODE_PRODUCT, TRUE, FALSE);
|
||||
|
||||
if (rc != ERROR_SUCCESS)
|
||||
return ERROR_UNKNOWN_PRODUCT;
|
||||
return rc;
|
||||
|
||||
if (dwOptions & MSISOURCETYPE_NETWORK)
|
||||
rc = OpenNetworkSubkey(sourcekey, &typekey, TRUE);
|
||||
|
|
|
@ -410,10 +410,7 @@ static void test_MsiSourceListAddSourceEx(void)
|
|||
r = pMsiSourceListAddSourceExA(prodcode, usersid,
|
||||
MSIINSTALLCONTEXT_USERUNMANAGED,
|
||||
MSICODE_PRODUCT | MSISOURCETYPE_URL, "C:\\source", 0);
|
||||
todo_wine
|
||||
{
|
||||
ok(r == ERROR_BAD_CONFIGURATION, "Expected ERROR_BAD_CONFIGURATION, got %d\n", r);
|
||||
}
|
||||
|
||||
res = RegCreateKeyA(userkey, "SourceList", &url);
|
||||
ok(res == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", res);
|
||||
|
|
Loading…
Reference in New Issue