From b65a117132a91ad74e0d16a481b12bc8cedc26fa Mon Sep 17 00:00:00 2001 From: Clownacy Date: Tue, 13 Jul 2021 23:33:15 +0100 Subject: [PATCH] Fix function not returning anything MSVC 6 was printing a warning about this. --- miniaudio.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miniaudio.h b/miniaudio.h index 4048d2be..789a797f 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -8811,6 +8811,8 @@ MA_API ma_result ma_log_postv(ma_log* pLog, ma_uint32 level, const char* pFormat ma_free(pFormattedMessage, &pLog->allocationCallbacks); return result; + } else { + return MA_OUT_OF_MEMORY; } } else { return MA_INVALID_OPERATION;