From 4dc31273f0d78461bd66c070a13b7f26d6f147b2 Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Sun, 24 Jan 2021 18:53:58 +0100 Subject: [PATCH] Fixed crash when running host-run and virtual mouse driver was not enabled --- src/osdep/amiberry.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/osdep/amiberry.cpp b/src/osdep/amiberry.cpp index 73386b39a..80e573df4 100644 --- a/src/osdep/amiberry.cpp +++ b/src/osdep/amiberry.cpp @@ -1551,7 +1551,8 @@ void replace(std::string& str, const std::string& from, const std::string& to) void target_execute(const char* command) { - releasecapture(0); + struct AmigaMonitor* mon = &AMonitors[0]; + releasecapture(mon); write_log("Target_execute received: %s\n", command); const std::string cmd_string = command;