Pass property bag to IPersistPropertyBag, if supported.
This commit is contained in:
parent
64c077860e
commit
66b019c1a8
|
@ -25,6 +25,7 @@
|
||||||
#include "devenum_private.h"
|
#include "devenum_private.h"
|
||||||
#include "vfwmsgs.h"
|
#include "vfwmsgs.h"
|
||||||
#include "oleauto.h"
|
#include "oleauto.h"
|
||||||
|
#include "ocidl.h"
|
||||||
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
|
|
||||||
|
@ -431,6 +432,17 @@ static HRESULT WINAPI DEVENUM_IMediaCatMoniker_BindToObject(
|
||||||
if (pObj!=NULL)
|
if (pObj!=NULL)
|
||||||
{
|
{
|
||||||
/* get the requested interface from the loaded class */
|
/* get the requested interface from the loaded class */
|
||||||
|
res = S_OK;
|
||||||
|
if (pProp) {
|
||||||
|
HRESULT res2;
|
||||||
|
LPVOID ppv = NULL;
|
||||||
|
res2 = IUnknown_QueryInterface(pObj, &IID_IPersistPropertyBag, &ppv);
|
||||||
|
if (SUCCEEDED(res2)) {
|
||||||
|
res = IPersistPropertyBag_Load((IPersistPropertyBag *) ppv, pProp, NULL);
|
||||||
|
IPersistPropertyBag_Release((IPersistPropertyBag *) ppv);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (SUCCEEDED(res))
|
||||||
res= IUnknown_QueryInterface(pObj,riidResult,ppvResult);
|
res= IUnknown_QueryInterface(pObj,riidResult,ppvResult);
|
||||||
IUnknown_Release(pObj);
|
IUnknown_Release(pObj);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue