Skip to content

Commit d524bb1

Browse files
committed
WM_CLOSE needs it's own case.
1 parent d0f2327 commit d524bb1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

RetailCoder.VBE/Common/RubberduckHooks.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,15 @@ private IntPtr WindowProc(IntPtr hWnd, uint uMsg, IntPtr wParam, IntPtr lParam)
224224
case WM.SETFOCUS:
225225
Attach();
226226
break;
227-
case WM.NCACTIVATE:
228-
case WM.CLOSE:
227+
case WM.NCACTIVATE:
229228
if (wParam == IntPtr.Zero)
230229
{
231230
Detach();
232231
}
233232
break;
233+
case WM.CLOSE:
234+
Detach();
235+
break;
234236
}
235237

236238
return suppress

0 commit comments

Comments
 (0)