msi: Return ERROR_SUCCESS if the PackageName property is not present.
This commit is contained in:
parent
381b915b47
commit
c26505b701
|
@ -344,7 +344,7 @@ UINT WINAPI MsiSourceListGetInfoW( LPCWSTR szProduct, LPCWSTR szUserSid,
|
||||||
rc = RegQueryValueExW(sourcekey, INSTALLPROPERTY_PACKAGENAMEW, 0, 0,
|
rc = RegQueryValueExW(sourcekey, INSTALLPROPERTY_PACKAGENAMEW, 0, 0,
|
||||||
(LPBYTE)szValue, pcchValue);
|
(LPBYTE)szValue, pcchValue);
|
||||||
if (rc != ERROR_SUCCESS && rc != ERROR_MORE_DATA)
|
if (rc != ERROR_SUCCESS && rc != ERROR_MORE_DATA)
|
||||||
rc = ERROR_UNKNOWN_PROPERTY;
|
rc = ERROR_SUCCESS;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -208,9 +208,9 @@ static void test_MsiSourceListGetInfo(void)
|
||||||
size = 0xdeadbeef;
|
size = 0xdeadbeef;
|
||||||
r = MsiSourceListGetInfoA(prodcode, usersid, MSIINSTALLCONTEXT_USERUNMANAGED,
|
r = MsiSourceListGetInfoA(prodcode, usersid, MSIINSTALLCONTEXT_USERUNMANAGED,
|
||||||
MSICODE_PRODUCT, INSTALLPROPERTY_PACKAGENAME, NULL, &size);
|
MSICODE_PRODUCT, INSTALLPROPERTY_PACKAGENAME, NULL, &size);
|
||||||
|
ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
|
||||||
todo_wine
|
todo_wine
|
||||||
{
|
{
|
||||||
ok(r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r);
|
|
||||||
ok(size == 0, "Expected 0, got %d\n", size);
|
ok(size == 0, "Expected 0, got %d\n", size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue