From 55450a5d73b26180187a05b70f3f87ec114d763c Mon Sep 17 00:00:00 2001 From: retro-wertz Date: Tue, 3 Apr 2018 12:08:53 +0800 Subject: [PATCH] Fix false [ERROR] when closing content filestream_delete() returns 0 on success, and -1 on failure. This PR removes this false error when closing content. e.g. [ERROR] Failed to remove temporary file: /EMULATORS/ConsoleRoms/Nintendo - Nintendo Entertainment System/Super Mario Bros. (World).nes. --- tasks/task_content.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/task_content.c b/tasks/task_content.c index 982f9dd54c..2c5f250482 100644 --- a/tasks/task_content.c +++ b/tasks/task_content.c @@ -1820,7 +1820,7 @@ void content_deinit(void) RARCH_LOG("%s: %s.\n", msg_hash_to_str(MSG_REMOVING_TEMPORARY_CONTENT_FILE), path); - if (!filestream_delete(path)) + if (filestream_delete(path) != 0) RARCH_ERR("%s: %s.\n", msg_hash_to_str(MSG_FAILED_TO_REMOVE_TEMPORARY_FILE), path);