Skip to content

Error handling windows (CreateFileMapping) #102

@DanielHerchenbach

Description

@DanielHerchenbach

Hello,
thank you for this library, I found it helpful!
A minor issue, the handle in this line:
https://github.com/mandreyel/mio/blob/8b6b7d878c89e81614d05edca7936de41ccdd2da/single_include/mio/mio.hpp#L928
should be compared with nullptr to detect the error case in my opinion.
https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createfilemappinga#return-value

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions