Commit e67953d6 authored by David Reid's avatar David Reid

Fix some bugs due to null pointer dereferences.

Public issue https://github.com/mackron/miniaudio/issues/209
parent 64a1941f
...@@ -42108,7 +42108,7 @@ MA_API ma_result ma_vfs_write(ma_vfs* pVFS, ma_vfs_file file, const void* pSrc, ...@@ -42108,7 +42108,7 @@ MA_API ma_result ma_vfs_write(ma_vfs* pVFS, ma_vfs_file file, const void* pSrc,
{ {
ma_vfs_callbacks* pCallbacks = (ma_vfs_callbacks*)pVFS; ma_vfs_callbacks* pCallbacks = (ma_vfs_callbacks*)pVFS;
if (pBytesWritten == NULL) { if (pBytesWritten != NULL) {
*pBytesWritten = 0; *pBytesWritten = 0;
} }
...@@ -42394,7 +42394,7 @@ static ma_result ma_default_vfs_write__win32(ma_vfs* pVFS, ma_vfs_file file, con ...@@ -42394,7 +42394,7 @@ static ma_result ma_default_vfs_write__win32(ma_vfs* pVFS, ma_vfs_file file, con
} }
} }
if (pBytesWritten == NULL) { if (pBytesWritten != NULL) {
*pBytesWritten = totalBytesWritten; *pBytesWritten = totalBytesWritten;
} }
...@@ -62815,6 +62815,7 @@ v0.10.21 - TBD ...@@ -62815,6 +62815,7 @@ v0.10.21 - TBD
- Core Audio: Fix a compilation warning. - Core Audio: Fix a compilation warning.
- Core Audio: Improvements to sample rate selection. - Core Audio: Improvements to sample rate selection.
- Core Audio: Add notes regarding the Apple notarization process. - Core Audio: Add notes regarding the Apple notarization process.
- Fix some bugs due to null pointer dereferences.
v0.10.20 - 2020-10-06 v0.10.20 - 2020-10-06
- Fix build errors with UWP. - Fix build errors with UWP.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment