mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-21 21:26:03 +01:00
lsteamclient: Allocate memory for every path conversion.
CW-Bug-Id: #22729
This commit is contained in:
parent
c3495c7f25
commit
1e11264606
11 changed files with 469 additions and 458 deletions
|
|
@ -25,10 +25,10 @@ DEFINE_THISCALL_WRAPPER(winISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Se
|
|||
bool __thiscall winISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Init(struct w_steam_iface *_this, const char *pchAbsolutePathToControllerConfigVDF)
|
||||
{
|
||||
bool _ret;
|
||||
char lin_pchAbsolutePathToControllerConfigVDF[PATH_MAX];
|
||||
steamclient_dos_path_to_unix_path(pchAbsolutePathToControllerConfigVDF, lin_pchAbsolutePathToControllerConfigVDF, 0);
|
||||
const char *u_pchAbsolutePathToControllerConfigVDF = steamclient_dos_to_unix_path( pchAbsolutePathToControllerConfigVDF, 0 );
|
||||
TRACE("%p\n", _this);
|
||||
_ret = cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Init(_this->u_iface, pchAbsolutePathToControllerConfigVDF ? lin_pchAbsolutePathToControllerConfigVDF : NULL);
|
||||
_ret = cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Init(_this->u_iface, pchAbsolutePathToControllerConfigVDF ? u_pchAbsolutePathToControllerConfigVDF : NULL);
|
||||
steamclient_free_path( u_pchAbsolutePathToControllerConfigVDF );
|
||||
return _ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue