mirror of
https://github.com/ValveSoftware/Proton
synced 2025-09-05 01:05:10 +00:00
lsteamclient: Use the buffer cache for indirectly returned strings.
This commit is contained in:
committed by
Arkadiusz Hiler
parent
e57e06c9c5
commit
76e9208d43
@@ -161,7 +161,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_GetUGCDetai
|
||||
{
|
||||
struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_GetUGCDetails_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_GetUGCDetails_params *)args;
|
||||
struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006 *)params->u_iface;
|
||||
params->_ret = iface->GetUGCDetails( params->hContent, params->pnAppID, params->ppchName, params->pnFileSizeInBytes, params->pSteamIDOwner );
|
||||
char *u_str;
|
||||
params->_ret = iface->GetUGCDetails( params->hContent, params->pnAppID, params->ppchName ? (char **)&u_str : nullptr, params->pnFileSizeInBytes, params->pSteamIDOwner );
|
||||
if (params->ppchName) params->_str = u_str;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user