Commit 190ef475 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

msi: Handle the remote case in MsiSummaryInfoSetProperty.

parent 4acd7b6c
......@@ -836,7 +836,17 @@ UINT WINAPI MsiSummaryInfoSetPropertyW( MSIHANDLE handle, UINT uiProperty, UINT
return ERROR_INVALID_PARAMETER;
if (!(si = msihandle2msiinfo( handle, MSIHANDLETYPE_SUMMARYINFO )))
{
MSIHANDLE remote;
if ((remote = msi_get_remote( handle )))
{
WARN("MsiSummaryInfoSetProperty not allowed during a custom action!\n");
return ERROR_FUNCTION_FAILED;
}
return ERROR_INVALID_HANDLE;
}
str.unicode = TRUE;
str.str.w = szValue;
......@@ -867,7 +877,17 @@ UINT WINAPI MsiSummaryInfoSetPropertyA( MSIHANDLE handle, UINT uiProperty, UINT
return ERROR_INVALID_PARAMETER;
if (!(si = msihandle2msiinfo( handle, MSIHANDLETYPE_SUMMARYINFO )))
{
MSIHANDLE remote;
if ((remote = msi_get_remote( handle )))
{
WARN("MsiSummaryInfoSetProperty not allowed during a custom action!\n");
return ERROR_FUNCTION_FAILED;
}
return ERROR_INVALID_HANDLE;
}
str.unicode = FALSE;
str.str.a = szValue;
......
......@@ -499,7 +499,9 @@ todo_wine
ok(hinst, !lstrcmpA(buffer, "deadbeef"), "got %s\n", buffer);
r = MsiSummaryInfoSetPropertyA(suminfo, PID_CODEPAGE, VT_I2, 1252, &ft, "");
todo_wine
ok(hinst, r == ERROR_FUNCTION_FAILED, "got %u\n", r);
r = MsiSummaryInfoSetPropertyW(suminfo, PID_CODEPAGE, VT_I2, 1252, &ft, NULL);
ok(hinst, r == ERROR_FUNCTION_FAILED, "got %u\n", r);
r = MsiCloseHandle(suminfo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment