We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a4fa49 commit c2270c1Copy full SHA for c2270c1
src/System.Windows.Forms/src/System/Windows/Forms/ActiveX/AxHost.cs
@@ -3234,8 +3234,9 @@ protected override unsafe void WndProc(ref Message m)
3234
3235
private unsafe void DetachAndForward(ref Message m)
3236
{
3237
+ bool isHandleCreated = IsHandleCreated;
3238
DetachWindow();
- if (IsHandleCreated)
3239
+ if (isHandleCreated)
3240
3241
void* wndProc = (void*)PInvoke.GetWindowLong(this, WINDOW_LONG_PTR_INDEX.GWL_WNDPROC);
3242
m.ResultInternal = PInvoke.CallWindowProc(
0 commit comments