Fix stack use-after-return on Linux

This commit is contained in:
Cacodemon345
2025-05-09 15:28:05 +06:00
parent 9a69e1800d
commit b0c9ca6b20
2 changed files with 3 additions and 1 deletions

View File

@@ -77,7 +77,7 @@ RendererStack::RendererStack(QWidget *parent, int monitor_index)
m_monitor_index = monitor_index;
#if defined __unix__ && !defined __HAIKU__
char auto_mouse_type[16];
memset(auto_mouse_type, 0, sizeof (auto_mouse_type));
mousedata.mouse_type = getenv("EMU86BOX_MOUSE");
if (!mousedata.mouse_type || (mousedata.mouse_type[0] == '\0') || !stricmp(mousedata.mouse_type, "auto")) {
if (QApplication::platformName().contains("wayland"))