fixes #12186
This commit is contained in:
parent
48537fec81
commit
f8000d4ba1
2 changed files with 9 additions and 2 deletions
|
|
@ -60,7 +60,7 @@ proc mapMem*(m: var MemFile, mode: FileMode = fmRead,
|
|||
if readonly: FILE_MAP_READ else: FILE_MAP_READ or FILE_MAP_WRITE,
|
||||
int32(offset shr 32),
|
||||
int32(offset and 0xffffffff),
|
||||
if mappedSize == -1: 0 else: mappedSize,
|
||||
WinSizeT(if mappedSize == -1: 0 else: mappedSize),
|
||||
nil)
|
||||
if result == nil:
|
||||
raiseOSError(osLastError())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue