Skip to content

Commit

Permalink
lsteamclient: Return NULL from manual_convert_SteamAPI_CheckCallbackR…
Browse files Browse the repository at this point in the history
…egistered_t() if win_func is NULL.

CW-Bug-Id: #21313
  • Loading branch information
Paul Gofman authored and ivyl committed Oct 11, 2022
1 parent 9e0ca1b commit 1da32ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lsteamclient/steamclient_wrappers.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ static uint32 lin_SteamAPI_CheckCallbackRegistered_t(int cb)

void *manual_convert_SteamAPI_CheckCallbackRegistered_t(void *win_func)
{
stored_SteamAPI_CheckCallbackRegistered_t = (void*)win_func;
if (!(stored_SteamAPI_CheckCallbackRegistered_t = (void*)win_func))
return NULL;

return &lin_SteamAPI_CheckCallbackRegistered_t;
}

0 comments on commit 1da32ef

Please sign in to comment.