lsteamclient: Return NULL from manual_convert_SteamAPI_CheckCallbackRegistered_t() if win_func is NULL.

CW-Bug-Id: #21313
This commit is contained in:
Paul Gofman 2022-09-16 15:43:47 -05:00 committed by Arkadiusz Hiler
parent be25891a0c
commit 30c6b5c41e

View file

@ -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;
}