Update fs.

This commit is contained in:
David Reid
2025-02-24 12:24:08 +10:00
parent b0e845e796
commit c1daa31759
+8
View File
@@ -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;
}