Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.

file map doesn't work on Windows #3

Open
klutzy opened this issue May 17, 2015 · 0 comments
Open

file map doesn't work on Windows #3

klutzy opened this issue May 17, 2015 · 0 comments

Comments

@klutzy
Copy link

klutzy commented May 17, 2015

It seems that the code contains some bugs. At src.lib#L354-L358:

                let r = libc::MapViewOfFile(mapping,
                                            dwDesiredAccess,
                                            ((len as u64) >> 32) as DWORD,
                                            (offset & 0xffff_ffff) as DWORD,
                                            0);

Here len as u64 should be offset as u64. Also, the len value should be similarly passed to CreateFileMappingW at L342-L347.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant