Commit c1daa317 authored by David Reid's avatar David Reid

Update fs.

parent b0e845e7
...@@ -646,6 +646,10 @@ FS_API fs_result fs_stream_read(fs_stream* pStream, void* pDst, size_t bytesToRe ...@@ -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 ...@@ -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;
} }
......
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