mirror of
https://github.com/zlib-ng/minizip-ng
synced 2025-03-28 21:13:18 +00:00
Seek to end of stream when appending.
This commit is contained in:
parent
2ce1fe2732
commit
7f73943486
@ -93,6 +93,9 @@ int32_t mz_stream_os_open(void *stream, const char *path, int32_t mode)
|
||||
return MZ_OPEN_ERROR;
|
||||
}
|
||||
|
||||
if (mode & MZ_OPEN_MODE_APPEND)
|
||||
return mz_stream_os_seek(stream, 0, MZ_SEEK_END);
|
||||
|
||||
return MZ_OK;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user