msi: An empty source is an invalid parameter.

oldstable
James Hawkins 2007-11-05 04:27:39 -05:00 committed by Alexandre Julliard
parent dde89244e5
commit 7fe6aad7fa
2 changed files with 2 additions and 5 deletions

View File

@ -603,7 +603,7 @@ UINT WINAPI MsiSourceListAddSourceExW( LPCWSTR szProduct, LPCWSTR szUserSid,
if (!szProduct || !squash_guid(szProduct, squished_pc))
return ERROR_INVALID_PARAMETER;
if (!szSource)
if (!szSource || !*szSource)
return ERROR_INVALID_PARAMETER;
if (dwOptions & MSICODE_PATCH)

View File

@ -617,10 +617,7 @@ static void test_MsiSourceListAddSourceEx(void)
r = pMsiSourceListAddSourceExA(prodcode, usersid,
MSIINSTALLCONTEXT_USERUNMANAGED,
MSISOURCETYPE_URL, "", 1);
todo_wine
{
ok(r == ERROR_INVALID_PARAMETER, "Expected ERROR_INVALID_PARAMETER, got %d\n", r);
}
ok(r == ERROR_INVALID_PARAMETER, "Expected ERROR_INVALID_PARAMETER, got %d\n", r);
/* MSIINSTALLCONTEXT_USERMANAGED, non-NULL szUserSid */