We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d788ab commit e128b7bCopy full SHA for e128b7b
src/wingui/WinGui.cpp
@@ -3399,6 +3399,12 @@ LRESULT TabsCtrl::OnNotifyReflect(WPARAM wp, LPARAM lp) {
3399
LRESULT TabsCtrl::WndProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp) {
3400
// TCITEMW* tcs = nullptr;
3401
3402
+ // I'm seeing crashes when ending a drag in WM_LBUTTONUP
3403
+ // because the MainWindow has been destroyed
3404
+ if (!IsWindow(hwnd)) {
3405
+ return 0;
3406
+ }
3407
+
3408
Point mousePos = {GET_X_LPARAM(lp), GET_Y_LPARAM(lp)};
3409
if (WM_MOUSELEAVE == msg) {
3410
mousePos = HwndGetCursorPos(hwnd);
0 commit comments