Nikolay Sivov : dbgeng: Implement GetExecutingProcessorType().
Alexandre Julliard
julliard at winehq.org
Tue Apr 23 17:39:54 CDT 2019
Module: wine
Branch: master
Commit: 7c7f557bcd7bdd29c6ff1a9dcf603870f726c633
URL: https://source.winehq.org/git/wine.git/?a=commit;h=7c7f557bcd7bdd29c6ff1a9dcf603870f726c633
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Tue Apr 23 10:38:17 2019 +0300
dbgeng: Implement GetExecutingProcessorType().
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dbgeng/dbgeng.c | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/dlls/dbgeng/dbgeng.c b/dlls/dbgeng/dbgeng.c
index 5352d3c..a62c052 100644
--- a/dlls/dbgeng/dbgeng.c
+++ b/dlls/dbgeng/dbgeng.c
@@ -2436,9 +2436,21 @@ static HRESULT STDMETHODCALLTYPE debugcontrol_GetActualProcessorType(IDebugContr
static HRESULT STDMETHODCALLTYPE debugcontrol_GetExecutingProcessorType(IDebugControl2 *iface, ULONG *type)
{
- FIXME("%p, %p stub.\n", iface, type);
+ struct debug_client *debug_client = impl_from_IDebugControl2(iface);
+ static struct target_process *target;
+ HRESULT hr;
- return E_NOTIMPL;
+ TRACE("%p, %p.\n", iface, type);
+
+ if (!(target = debug_client_get_target(debug_client)))
+ return E_UNEXPECTED;
+
+ if (FAILED(hr = debug_target_init_modules_info(target)))
+ return hr;
+
+ *type = target->cpu_type;
+
+ return S_OK;
}
static HRESULT STDMETHODCALLTYPE debugcontrol_GetNumberPossibleExecutingProcessorTypes(IDebugControl2 *iface,
More information about the wine-cvs
mailing list