From: Zhiyi Zhang <zzhang@codeweavers.com> --- dlls/windows.ui/corewindow.c | 4 +++- dlls/windows.ui/tests/corewindow.c | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/windows.ui/corewindow.c b/dlls/windows.ui/corewindow.c index 6ccdf80273c..d74e73804aa 100644 --- a/dlls/windows.ui/corewindow.c +++ b/dlls/windows.ui/corewindow.c @@ -120,7 +120,9 @@ DEFINE_IINSPECTABLE(corewindow_static, ICoreWindowStatic, struct corewindow_stat static HRESULT STDMETHODCALLTYPE corewindow_static_GetForCurrentThread(ICoreWindowStatic *iface, ICoreWindow **windows) { FIXME("iface %p, windows %p stub!\n", iface, windows); - return E_NOTIMPL; + + *windows = NULL; + return S_OK; } static const struct ICoreWindowStaticVtbl corewindow_static_vtbl = diff --git a/dlls/windows.ui/tests/corewindow.c b/dlls/windows.ui/tests/corewindow.c index 15f93cca35e..d47007bdbcd 100644 --- a/dlls/windows.ui/tests/corewindow.c +++ b/dlls/windows.ui/tests/corewindow.c @@ -82,7 +82,6 @@ static void test_CoreWindow(void) core_window = (ICoreWindow *)0xdeadbeef; hr = ICoreWindowStatic_GetForCurrentThread(core_window_static, &core_window); ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr); - todo_wine ok(core_window == NULL, "Got unexpected core_window.\n"); ICoreWindowStatic_Release(core_window_static); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9963