lsteamclient: Pass WoW64 flag to callback conversion helpers.#9979
Open
a1vazovsky wants to merge 1 commit into
Open
lsteamclient: Pass WoW64 flag to callback conversion helpers.#9979a1vazovsky wants to merge 1 commit into
a1vazovsky wants to merge 1 commit into
Conversation
Signed-off-by: a1vazovsky <277024436+a1vazovsky@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
steamclient_Steam_BGetCallback(),steamclient_callback_message_receive(), andsteamclient_Steam_GetAPICallResult()already receive awow64flag, but hardcodefalsewhen selecting callback layouts. This makes 32-bit clients using the 64-bit Unix library selectcallback_datainstead ofwow64_callback_data. For callbacks with pointer-sized members, such asHTML_ChangedTitle_t, this returns the 64-bit Windows layout to a 32-bit caller. Passwow64tocallback_len_utow(),alloc_callback_wtou(), andconvert_callback_utow()so the correct callback table is used. Native behavior is unchanged.