mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-25 09:44:02 +02:00
Update fs.
This commit is contained in:
Vendored
+8
@@ -646,6 +646,10 @@ FS_API fs_result fs_stream_read(fs_stream* pStream, void* pDst, size_t bytesToRe
|
||||
size_t bytesRead;
|
||||
fs_result result;
|
||||
|
||||
if (pBytesRead != NULL) {
|
||||
*pBytesRead = 0;
|
||||
}
|
||||
|
||||
if (pStream == NULL) {
|
||||
return FS_INVALID_ARGS;
|
||||
}
|
||||
@@ -669,6 +673,10 @@ FS_API fs_result fs_stream_write(fs_stream* pStream, const void* pSrc, size_t by
|
||||
size_t bytesWritten;
|
||||
fs_result result;
|
||||
|
||||
if (pBytesWritten != NULL) {
|
||||
*pBytesWritten = 0;
|
||||
}
|
||||
|
||||
if (pStream == NULL) {
|
||||
return FS_INVALID_ARGS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user