summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorboludoz <francomaro@gmail.com>2023-10-16 23:59:21 +0200
committerboludoz <francomaro@gmail.com>2023-10-16 23:59:21 +0200
commit1ae0f0f3f64446b3128da0f1b1151d95739c9a6e (patch)
treeb92a7eb7d416d5db1aa1256067ccd7682b433d49
parentComment using fmt instead qt. (diff)
downloadyuzu-1ae0f0f3f64446b3128da0f1b1151d95739c9a6e.tar
yuzu-1ae0f0f3f64446b3128da0f1b1151d95739c9a6e.tar.gz
yuzu-1ae0f0f3f64446b3128da0f1b1151d95739c9a6e.tar.bz2
yuzu-1ae0f0f3f64446b3128da0f1b1151d95739c9a6e.tar.lz
yuzu-1ae0f0f3f64446b3128da0f1b1151d95739c9a6e.tar.xz
yuzu-1ae0f0f3f64446b3128da0f1b1151d95739c9a6e.tar.zst
yuzu-1ae0f0f3f64446b3128da0f1b1151d95739c9a6e.zip
-rw-r--r--src/yuzu/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 54b36552d..e49de921c 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -2922,10 +2922,10 @@ bool GMainWindow::CreateShortcutLink(const std::filesystem::path& shortcut_path,
} else {
LOG_ERROR(Frontend, "Failed to create shortcut");
}
+ shortcut_stream.close();
} catch (const std::exception& e) {
LOG_ERROR(Frontend, "Failed to create shortcut: {}", e.what());
}
- shortcut_stream.close();
return false;
#elif defined(_WIN32) // Windows
HRESULT hr = CoInitialize(NULL);