[PATCH 2/3] comsvcs: Implement IHolder Alloc/Free Resource
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Sun Nov 25 22:50:49 CST 2018
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
dlls/comsvcs/main.c | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/dlls/comsvcs/main.c b/dlls/comsvcs/main.c
index 21bdd67..d7831cf 100644
--- a/dlls/comsvcs/main.c
+++ b/dlls/comsvcs/main.c
@@ -107,19 +107,29 @@ static ULONG WINAPI holder_Release(IHolder *iface)
static HRESULT WINAPI holder_AllocResource(IHolder *iface, const RESTYPID typeid, RESID *resid)
{
holder *This = impl_from_IHolder(iface);
+ HRESULT hr;
+ TIMEINSECS secs;
- FIXME("(%p)->(%08lx, %p) stub\n", This, typeid, resid);
+ TRACE("(%p)->(%08lx, %p) stub\n", This, typeid, resid);
- return E_NOTIMPL;
+ hr = IDispenserDriver_CreateResource(This->driver, typeid, resid, &secs);
+
+ TRACE("<- 0x%08x\n", hr);
+ return hr;
}
static HRESULT WINAPI holder_FreeResource(IHolder *iface, const RESID resid)
{
holder *This = impl_from_IHolder(iface);
+ HRESULT hr;
- FIXME("(%p)->(%08lx) stub\n", This, resid);
+ TRACE("(%p)->(%08lx) stub\n", This, resid);
- return E_NOTIMPL;
+ hr = IDispenserDriver_DestroyResource(This->driver, resid);
+
+ TRACE("<- 0x%08x\n", hr);
+
+ return hr;
}
static HRESULT WINAPI holder_TrackResource(IHolder *iface, const RESID resid)
--
1.9.1
More information about the wine-devel
mailing list