[PATCH] wbemprox: Return WBEM_E_ACCESS_DENIED from IEnumWbemClassObject::Next() if the object is empty.

Hans Leidekker hans at codeweavers.com
Mon Jul 8 04:51:00 CDT 2019


On Mon, 2019-07-08 at 17:37 +0800, Dmitry Timoshkov wrote:
> Looks like this is a result of executing from an MSI custom action.
> > > Is there a way to detect such a case and return an appropriate error
> > > value?
> > 
> > The error code suggests that the custom action is run with insufficient
> > permissions. If that's the case we'd need to do the same and add a permission
> > check somewhere.
> 
> Under Windows MSI custom action is executed in the context of an MSI server,
> which probably runs as a restricted process, and which doesn't exist in Wine.

Custom actions are executed in a seperate process in Wine.

> Could you suggest a place in Wine where a permission check could be added?

It's not clear to me if this is a general WMI thing or if it depends on the
object being queried.





More information about the wine-devel mailing list