From 861ae27a4f26455d5a9e3d04166cc416577545dd Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Mon, 5 Nov 2007 04:19:13 -0500 Subject: [PATCH] msi: Return the error from OpenSourceKey. --- dlls/msi/source.c | 2 +- dlls/msi/tests/source.c | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) 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);