mdbx: more check/debug around mdbx_pread() and mdbx_read_header().

This commit is contained in:
Leo Yuriev
2017-04-27 18:13:39 +03:00
parent f8903ca7c7
commit 678e4f5738
3 changed files with 8 additions and 7 deletions

View File

@@ -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;