From ebece8281a2c8a1afdede43935d5b4fd52e67730 Mon Sep 17 00:00:00 2001 From: David Reid Date: Sun, 18 Mar 2018 20:50:18 +1000 Subject: [PATCH] Fix errors when opening a decoder from a file. --- mini_al.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mini_al.h b/mini_al.h index ad05a753..b27120a8 100644 --- a/mini_al.h +++ b/mini_al.h @@ -17490,12 +17490,12 @@ mal_result mal_decoder__preinit_file(const char* pFilePath, const mal_decoder_co FILE* pFile; #if defined(_MSC_VER) && _MSC_VER >= 1400 if (fopen_s(&pFile, pFilePath, "rb") != 0) { - return MAL_FALSE; + return MAL_ERROR; } #else pFile = fopen(pFilePath, "rb"); if (pFile == NULL) { - return MAL_FALSE; + return MAL_ERROR; } #endif