Fix loading a .WUHB while running a .WUHB

This commit is contained in:
Maschell 2024-04-03 22:29:18 +02:00
parent 39fd2654bb
commit c313b934df
1 changed files with 1 additions and 1 deletions

View File

@ -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;