steamclient: Forward Steam_ReleaseThreadLocalMemory().

This commit is contained in:
Nikolay Sivov
2018-10-31 07:48:35 -05:00
committed by Andrew Eikum
parent 63179d7f09
commit 275c971b3e
2 changed files with 18 additions and 1 deletions
+17
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");