From ccd3d1ca09b889433c3f9cfdfb0658a5d55563da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20K=C3=A4s?= Date: Sat, 17 Feb 2024 12:43:15 +0100 Subject: [PATCH] Fix AxTestControl not being creatable. --- .../tests/InteropTests/NativeTests/AxTestControl.cpp | 2 ++ .../tests/InteropTests/NativeTests/AxTestControl.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/System.Windows.Forms/tests/InteropTests/NativeTests/AxTestControl.cpp b/src/System.Windows.Forms/tests/InteropTests/NativeTests/AxTestControl.cpp index 95ea853babe..9f2911dbb37 100644 --- a/src/System.Windows.Forms/tests/InteropTests/NativeTests/AxTestControl.cpp +++ b/src/System.Windows.Forms/tests/InteropTests/NativeTests/AxTestControl.cpp @@ -126,3 +126,5 @@ HRESULT CAxTestControl::Fire_OnClick() return hr; } + +OBJECT_ENTRY_AUTO(__uuidof(AxTestControl), CAxTestControl); diff --git a/src/System.Windows.Forms/tests/InteropTests/NativeTests/AxTestControl.h b/src/System.Windows.Forms/tests/InteropTests/NativeTests/AxTestControl.h index 216e9c76b14..98cda15b9a2 100644 --- a/src/System.Windows.Forms/tests/InteropTests/NativeTests/AxTestControl.h +++ b/src/System.Windows.Forms/tests/InteropTests/NativeTests/AxTestControl.h @@ -42,6 +42,7 @@ class ATL_NO_VTABLE CAxTestControl : void FinalRelease(); DECLARE_PROTECT_FINAL_CONSTRUCT() + DECLARE_NO_REGISTRY() DECLARE_OLEMISC_STATUS(0 | OLEMISC_RECOMPOSEONRESIZE