Skip to content

Implement FormatMessageA system messages - #152

Open
miried wants to merge 1 commit into
decompals:mainfrom
miried:formatmessagea
Open

miried wants to merge 1 commit into
decompals:mainfrom
miried:formatmessagea

Conversation

@miried

@miried miried commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

@ethteck @encounter the missing FormatMessageA seems to be stuck issue. The current version is commented out and has only the FORMAT_MESSAGE_FROM_SYSTEM path implemented, with system messages coming from the host system rather than true Windows errors, and no tests. With this PR, I tried to keep the change "minimal": the goal was to keep the scope confined to FORMAT_MESSAGE_FROM_SYSTEM flag, but with proper messages so we can test it against Wine. Note that the real FormatMessageA would need more code paths to be useful, but I'm hoping like this we can at least get the issue unstuck, and - if needed - add more functionality later?

I would prefer this one over #139 and #120 due to its smaller change surface. But I'm happy to start a discussion what is the preferred way forward.

Add a Wine-compatible system error message table, named FormatMessageA
flags, and regression coverage for FORMAT_MESSAGE_FROM_SYSTEM lookups.
Insert sequences are not processed; the table's messages contain none.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant