mirror of
https://github.com/isar/libmdbx.git
synced 2025-11-07 07:18:56 +08:00
mdbx: more check/debug around mdbx_pread() and mdbx_read_header().
This commit is contained in:
@@ -325,9 +325,9 @@ int mdbx_closefile(mdbx_filehandle_t fd) {
|
||||
}
|
||||
|
||||
int mdbx_pread(mdbx_filehandle_t fd, void *buf, size_t bytes, off_t offset) {
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
if (bytes > MAX_WRITE)
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
return MDBX_EINVAL;
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
|
||||
OVERLAPPED ov;
|
||||
ov.hEvent = 0;
|
||||
|
||||
Reference in New Issue
Block a user