steamclient: Forward Steam_ReleaseThreadLocalMemory().

This commit is contained in:
Nikolay Sivov 2018-10-30 21:57:33 +03:00 committed by Andrew Eikum
parent 63179d7f09
commit 275c971b3e
2 changed files with 18 additions and 1 deletions

View File

@ -34,7 +34,7 @@
32 stub Steam_InitiateGameConnection
33 stub Steam_LogOff
34 stub Steam_LogOn
35 stub Steam_ReleaseThreadLocalMemory
35 cdecl Steam_ReleaseThreadLocalMemory(long)
36 stub Steam_ReleaseUser
37 stub Steam_SetLocalIPBinding
38 stub Steam_TerminateGameConnection

View File

@ -89,6 +89,7 @@ static void *(*steamclient_CreateInterface)(const char *name, int *return_code);
static bool (*steamclient_BGetCallback)(HSteamPipe a, CallbackMsg_t *b, int32 *c);
static bool (*steamclient_GetAPICallResult)(HSteamPipe, SteamAPICall_t, void *, int, int, bool *);
static bool (*steamclient_FreeLastCallback)(HSteamPipe);
static void (*steamclient_ReleaseThreadLocalMemory)(int);
static int load_steamclient(void)
{
@ -141,6 +142,12 @@ static int load_steamclient(void)
return 0;
}
steamclient_ReleaseThreadLocalMemory = wine_dlsym(steamclient_lib, "Steam_ReleaseThreadLocalMemory", NULL, 0);
if(!steamclient_ReleaseThreadLocalMemory){
ERR("unable to load ReleaseThreadLocalMemory method\n");
return 0;
}
return 1;
}
@ -268,6 +275,16 @@ bool CDECL Steam_FreeLastCallback(HSteamPipe pipe)
return steamclient_FreeLastCallback(pipe);
}
void CDECL Steam_ReleaseThreadLocalMemory(int bThreadExit)
{
TRACE("%d\n", bThreadExit);
if(!load_steamclient())
return;
steamclient_ReleaseThreadLocalMemory(bThreadExit);
}
void CDECL Breakpad_SteamMiniDumpInit(uint32_t a, const char *b, const char *c)
{
TRACE("\n");