From c726f5ce1f2314289304e8a03f3545a28385bc43 Mon Sep 17 00:00:00 2001 From: J Rose <1717975-1R053@users.noreply.gitlab.com> Date: Mon, 1 Mar 2021 21:20:05 +0100 Subject: [PATCH] bugfix for #4370 --- .../src/System/Windows/Forms/Control.ActiveXImpl.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/System.Windows.Forms/src/System/Windows/Forms/Control.ActiveXImpl.cs b/src/System.Windows.Forms/src/System/Windows/Forms/Control.ActiveXImpl.cs index 4c656a7a002..4d97be62d2e 100644 --- a/src/System.Windows.Forms/src/System/Windows/Forms/Control.ActiveXImpl.cs +++ b/src/System.Windows.Forms/src/System/Windows/Forms/Control.ActiveXImpl.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. @@ -838,7 +838,7 @@ internal unsafe void InPlaceActivate(OLEIVERB verb) // We are entering a secure context here. IntPtr hwndParent = IntPtr.Zero; - HRESULT hr = _inPlaceUiWindow.GetWindow(&hwndParent); + HRESULT hr = inPlaceSite.GetWindow(&hwndParent); if (!hr.Succeeded()) { ThrowHr(hr);