From 48ed3d6d147474585ce19631d8f3639cf0ce682e Mon Sep 17 00:00:00 2001 From: xavi92 Date: Sat, 23 Nov 2024 11:18:11 +0000 Subject: [PATCH] sink.h: Make flush() virtual Otherwise, the writefile class would be unable to flush() its std::ofstream, which might cause downloadsmenu.cpp to attempt to extract an empty or partially written file. git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9613 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: c3f5435a045dbbfa74d55ef2c665a324bb72e5b5 Former-commit-id: 1edb27e20333ffd39c0378a390bffde5b74e7a49 --- src/modules/userinterface/legacymenu/mainscreens/sink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/userinterface/legacymenu/mainscreens/sink.h b/src/modules/userinterface/legacymenu/mainscreens/sink.h index bf6caaf99..a8e1d6e4a 100644 --- a/src/modules/userinterface/legacymenu/mainscreens/sink.h +++ b/src/modules/userinterface/legacymenu/mainscreens/sink.h @@ -19,7 +19,7 @@ public: virtual int append(const void *buf, size_t n); virtual ~sink() = default; size_t size() const; - void flush(); + virtual void flush(); bool cleanup; protected: