Skip to content

Cannot build addon which defines UNICODE macro #3146

@vfssoft

Description

@vfssoft

The code here cannot be built when I try to build a node addon that defines _UNICODE macro on Windows:

m = GetModuleHandle("libnode.dll");

When _UNICODE is defined, GetModuleHandle will be expanded to GetModuleHandleW, but the parameter is a LPCSTR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions