Skip to content

Window class usage is not enforced #3132

@Zoxc

Description

@Zoxc

On Windows registering the window class is not checked for errors. This means we can end up creating a window with the wrong class from some other code or another version of winit.

In the case of another version of winit this can cause crashes as public_window_callback expects lpCreateParams to contain a pointer to a InitData from the same winit version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DS - win32Affects the Win32/Windows backend

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions