mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-26 02:04:05 +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;
|
size_t bytesRead;
|
||||||
fs_result result;
|
fs_result result;
|
||||||
|
|
||||||
|
if (pBytesRead != NULL) {
|
||||||
|
*pBytesRead = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (pStream == NULL) {
|
if (pStream == NULL) {
|
||||||
return FS_INVALID_ARGS;
|
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;
|
size_t bytesWritten;
|
||||||
fs_result result;
|
fs_result result;
|
||||||
|
|
||||||
|
if (pBytesWritten != NULL) {
|
||||||
|
*pBytesWritten = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (pStream == NULL) {
|
if (pStream == NULL) {
|
||||||
return FS_INVALID_ARGS;
|
return FS_INVALID_ARGS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user