Fix stack use-after-return on Linux
This commit is contained in:
@@ -77,7 +77,7 @@ RendererStack::RendererStack(QWidget *parent, int monitor_index)
|
|||||||
|
|
||||||
m_monitor_index = monitor_index;
|
m_monitor_index = monitor_index;
|
||||||
#if defined __unix__ && !defined __HAIKU__
|
#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");
|
mousedata.mouse_type = getenv("EMU86BOX_MOUSE");
|
||||||
if (!mousedata.mouse_type || (mousedata.mouse_type[0] == '\0') || !stricmp(mousedata.mouse_type, "auto")) {
|
if (!mousedata.mouse_type || (mousedata.mouse_type[0] == '\0') || !stricmp(mousedata.mouse_type, "auto")) {
|
||||||
if (QApplication::platformName().contains("wayland"))
|
if (QApplication::platformName().contains("wayland"))
|
||||||
|
|||||||
@@ -137,6 +137,8 @@ private:
|
|||||||
|
|
||||||
std::atomic_bool rendererTakesScreenshots;
|
std::atomic_bool rendererTakesScreenshots;
|
||||||
std::atomic_bool switchInProgress{false};
|
std::atomic_bool switchInProgress{false};
|
||||||
|
|
||||||
|
char auto_mouse_type[16];
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // QT_RENDERERCONTAINER_HPP
|
#endif // QT_RENDERERCONTAINER_HPP
|
||||||
|
|||||||
Reference in New Issue
Block a user