From c9cc99141c42be615c27fdadcea784132b3ecad8 Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 17 Mar 2020 07:14:01 +1000 Subject: [PATCH] Minor formatting. --- miniaudio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index edaf18df..e0c97aea 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -6811,8 +6811,9 @@ MA_API ma_result ma_fopen(FILE** ppFile, const char* pFilePath, const char* pOpe if (*ppFile == NULL) { ma_result result = ma_result_from_errno(errno); if (result == MA_SUCCESS) { - return MA_ERROR; /* Just a safety check to make sure we never ever return success when pFile == NULL. */ + result = MA_ERROR; /* Just a safety check to make sure we never ever return success when pFile == NULL. */ } + return result; } #endif