mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
msi: szUserSid must be NULL if context is MSIINSTALLCONTEXT_MACHINE.
This commit is contained in:
parent
14d439c863
commit
21619964da
@ -667,8 +667,8 @@ UINT WINAPI MsiSourceListAddSourceExW( LPCWSTR szProduct, LPCWSTR szUserSid,
|
||||
return ERROR_FUNCTION_FAILED;
|
||||
}
|
||||
|
||||
if (szUserSid)
|
||||
FIXME("Unhandled UserSid %s\n",debugstr_w(szUserSid));
|
||||
if (szUserSid && (dwContext & MSIINSTALLCONTEXT_MACHINE))
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
|
||||
rc = OpenSourceKey(szProduct, &sourcekey, MSICODE_PRODUCT, dwContext, FALSE);
|
||||
if (rc != ERROR_SUCCESS)
|
||||
|
@ -659,10 +659,7 @@ static void test_MsiSourceListAddSourceEx(void)
|
||||
r = pMsiSourceListAddSourceExA(prodcode, usersid,
|
||||
MSIINSTALLCONTEXT_MACHINE,
|
||||
MSICODE_PRODUCT | MSISOURCETYPE_URL, "C:\\source", 0);
|
||||
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);
|
||||
|
||||
r = pMsiSourceListAddSourceExA(prodcode, NULL,
|
||||
MSIINSTALLCONTEXT_MACHINE,
|
||||
|
Loading…
Reference in New Issue
Block a user