Skip to content

lsteamclient: Pass WoW64 flag to callback conversion helpers.#9979

Open
a1vazovsky wants to merge 1 commit into
ValveSoftware:proton_11.0from
a1vazovsky:fix-lsteamclient-wow64-callbacks
Open

lsteamclient: Pass WoW64 flag to callback conversion helpers.#9979
a1vazovsky wants to merge 1 commit into
ValveSoftware:proton_11.0from
a1vazovsky:fix-lsteamclient-wow64-callbacks

Conversation

@a1vazovsky

Copy link
Copy Markdown

steamclient_Steam_BGetCallback(), steamclient_callback_message_receive(), and steamclient_Steam_GetAPICallResult() already receive a wow64 flag, but hardcode false when selecting callback layouts. This makes 32-bit clients using the 64-bit Unix library select callback_data instead of wow64_callback_data. For callbacks with pointer-sized members, such as HTML_ChangedTitle_t, this returns the 64-bit Windows layout to a 32-bit caller. Pass wow64 to callback_len_utow(), alloc_callback_wtou(), and convert_callback_utow() so the correct callback table is used. Native behavior is unchanged.

Signed-off-by: a1vazovsky <277024436+a1vazovsky@users.noreply.github.com>
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