diff --git a/dlls/msi/source.c b/dlls/msi/source.c index efc9e8032fe..11140c48bf9 100644 --- a/dlls/msi/source.c +++ b/dlls/msi/source.c @@ -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); diff --git a/dlls/msi/tests/source.c b/dlls/msi/tests/source.c index 167bf5d20bc..aa58c362391 100644 --- a/dlls/msi/tests/source.c +++ b/dlls/msi/tests/source.c @@ -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); - } + 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);