From 2f02a994be154039d3883bdc438e92dce095a955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 22 Jan 2024 23:51:27 +0100 Subject: [PATCH] Fix icon reading bug in GameInfoCache --- UI/GameInfoCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/GameInfoCache.cpp b/UI/GameInfoCache.cpp index 45a745fbc90b..199ff42aabf5 100644 --- a/UI/GameInfoCache.cpp +++ b/UI/GameInfoCache.cpp @@ -366,7 +366,7 @@ static bool ReadFileToString(IFileSystem *fs, const char *filename, std::string static bool ReadLocalFileToString(const Path &path, std::string *contents, std::mutex *mtx) { std::string data; - if (!File::ReadFileToString(false, path, *contents)) { + if (!File::ReadFileToString(false, path, data)) { return false; } if (mtx) {