[1/2] mscoree: Implement corruntimehost_CreateDomainSetup.
Vincent Povirk
madewokherd at gmail.com
Mon Aug 18 11:32:39 CDT 2014
-------------- next part --------------
From 474a0a8bba5d1d08e2d8488e9f5d94a392643b6e Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Wed, 13 Aug 2014 14:32:29 -0500
Subject: [PATCH 1/2] mscoree: Implement corruntimehost_CreateDomainSetup.
---
dlls/mscoree/corruntimehost.c | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/dlls/mscoree/corruntimehost.c b/dlls/mscoree/corruntimehost.c
index 5b7e833..b44fb6a 100644
--- a/dlls/mscoree/corruntimehost.c
+++ b/dlls/mscoree/corruntimehost.c
@@ -463,8 +463,23 @@ static HRESULT WINAPI corruntimehost_CreateDomainSetup(
ICorRuntimeHost* iface,
IUnknown **appDomainSetup)
{
- FIXME("stub %p\n", iface);
- return E_NOTIMPL;
+ RuntimeHost *This = impl_from_ICorRuntimeHost( iface );
+ HRESULT hr;
+ MonoDomain *domain;
+ MonoObject *obj;
+ static const WCHAR classnameW[] = {'S','y','s','t','e','m','.','A','p','p','D','o','m','a','i','n','S','e','t','u','p',',','m','s','c','o','r','l','i','b',0};
+
+ TRACE("(%p)\n", iface);
+
+ hr = RuntimeHost_GetDefaultDomain(This, &domain);
+
+ if (SUCCEEDED(hr))
+ hr = RuntimeHost_CreateManagedInstance(This, classnameW, domain, &obj);
+
+ if (SUCCEEDED(hr))
+ hr = RuntimeHost_GetIUnknownForObject(This, obj, appDomainSetup);
+
+ return hr;
}
static HRESULT WINAPI corruntimehost_CreateEvidence(
--
1.8.3.2
More information about the wine-patches
mailing list