From b0e9cbd11041a602067ef00b22a281a922f8e1b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Mon, 29 Sep 2025 19:47:41 -0700 Subject: [PATCH] Fixed crash. --- examples/common/entry/entry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/common/entry/entry.cpp b/examples/common/entry/entry.cpp index 07cfa1d1e..3505e526c 100644 --- a/examples/common/entry/entry.cpp +++ b/examples/common/entry/entry.cpp @@ -851,7 +851,7 @@ restart: if (NULL != ev) { handle = ev->m_handle; - WindowState& win = s_window[handle.idx]; + WindowState& win = s_window[isValid(handle) ? handle.idx : 0]; switch (ev->m_type) {