From c313b934df2d0467f5520e7368ef1315052ae4f1 Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 3 Apr 2024 22:29:18 +0200 Subject: [PATCH] Fix loading a .WUHB while running a .WUHB --- src/utils/FSUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/FSUtils.cpp b/src/utils/FSUtils.cpp index 428c589..79d779a 100644 --- a/src/utils/FSUtils.cpp +++ b/src/utils/FSUtils.cpp @@ -86,7 +86,7 @@ bool FSUtils::saveBufferToFile(const char *path, void *buffer, uint32_t size) { int fd = open(path, O_CREAT | O_TRUNC | O_WRONLY); if (fd < 0) { DEBUG_FUNCTION_LINE_ERR("Failed to open %s. %d", path, fd); - return -1; + return false; } auto sizeToWrite = size; auto *ptr = buffer;