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);