Skip to content

Rustc generates wrong calling convention for WinMain #8510

Closed
@klutzy

Description

@klutzy

Currently rustc generates WinMain function with cdecl calling convention (src/librustc/middle/trans/base.rs), but Win32 API docs say stdcall is right.
Linker works because we actually export it as "WinMain@16", but I think it's a hack and should be fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-windowsOperating system: Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions