mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 16:54:03 +02:00
Fix a warning in ma_wfopen().
This commit is contained in:
+3
-6
@@ -6853,13 +6853,9 @@ MA_API ma_result ma_wfopen(FILE** ppFile, const wchar_t* pFilePath, const wchar_
|
|||||||
|
|
||||||
#if defined(MA_HAS_WFOPEN)
|
#if defined(MA_HAS_WFOPEN)
|
||||||
{
|
{
|
||||||
errno_t err;
|
/* Use _wfopen() on Windows. */
|
||||||
|
|
||||||
(void)pAllocationCallbacks;
|
|
||||||
|
|
||||||
/* Use _wfopen() on Windows. */
|
|
||||||
#if defined(_MSC_VER) && _MSC_VER >= 1400
|
#if defined(_MSC_VER) && _MSC_VER >= 1400
|
||||||
err = _wfopen_s(ppFile, pFilePath, pOpenMode);
|
errno_t err = _wfopen_s(ppFile, pFilePath, pOpenMode);
|
||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
return ma_result_from_errno(err);
|
return ma_result_from_errno(err);
|
||||||
}
|
}
|
||||||
@@ -6869,6 +6865,7 @@ MA_API ma_result ma_wfopen(FILE** ppFile, const wchar_t* pFilePath, const wchar_
|
|||||||
return ma_result_from_errno(errno);
|
return ma_result_from_errno(errno);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
(void)pAllocationCallbacks;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user