diff --git a/lsteamclient/gen_wrapper.py b/lsteamclient/gen_wrapper.py index 928256ba..1ba8eeaf 100755 --- a/lsteamclient/gen_wrapper.py +++ b/lsteamclient/gen_wrapper.py @@ -725,11 +725,9 @@ def handle_method_c(method, winclassname, cppname, out): for name, conv in filter(lambda x: x[0] in names, path_conv_wtou.items()): if conv['array']: - out(f' const char **lin_{name} = steamclient_dos_to_unix_stringlist({name});\n') - # TODO + out(f' const char **u_{name} = steamclient_dos_to_unix_path_array( {name} );\n') else: - out(f' char lin_{name}[PATH_MAX];\n') - out(f' steamclient_dos_path_to_unix_path({name}, lin_{name}, {int(conv["url"])});\n') + out(f' const char *u_{name} = steamclient_dos_to_unix_path( {name}, {int(conv["url"])} );\n') out(u' TRACE("%p\\n", _this);\n') @@ -756,7 +754,7 @@ def handle_method_c(method, winclassname, cppname, out): if name == '_this': return '_this->u_iface' iface = param.type.get_pointee().spelling if param.type.kind == TypeKind.POINTER else None if iface in WRAPPED_CLASSES: return f'create_Linux{iface}({name}, "{winclassname}")' - if name in path_conv_wtou: return f'{name} ? lin_{name} : NULL' + if name in path_conv_wtou: return f'{name} ? u_{name} : NULL' return name params = ['_this'] + list(method.get_arguments()) @@ -782,7 +780,9 @@ def handle_method_c(method, winclassname, cppname, out): for name, conv in filter(lambda x: x[0] in names, path_conv_wtou.items()): if conv["array"]: - out(f' steamclient_free_stringlist(lin_{name});\n') + out(f' steamclient_free_path_array( u_{name} );\n') + else: + out(f' steamclient_free_path( u_{name} );\n') if not returns_void: out(u' return _ret;\n') diff --git a/lsteamclient/steamclient_main.c b/lsteamclient/steamclient_main.c index 16ed6803..5eb138d8 100644 --- a/lsteamclient/steamclient_main.c +++ b/lsteamclient/steamclient_main.c @@ -216,20 +216,21 @@ unsigned int steamclient_unix_path_to_dos_path(bool api_result, const char *src, #define IS_ABSOLUTE(x) (*x == '/' || *x == '\\' || (*x && *(x + 1) == ':')) -/* returns non-zero on success, zero on failure */ -bool steamclient_dos_path_to_unix_path(const char *src, char *dst, int is_url) +const char *steamclient_dos_to_unix_path( const char *src, int is_url ) { static const char file_prot[] = "file://"; + char buffer[4096], *dst = buffer; + uint32_t len; + + if (!src) return NULL; *dst = 0; - - if(!src || !*src) - return 0; + if (!*src) goto done; if(is_url){ if(strncmp(src, file_prot, 7) != 0){ strcpy(dst, src); - return 1; + goto done; } src += 7; @@ -245,12 +246,12 @@ bool steamclient_dos_path_to_unix_path(const char *src, char *dst, int is_url) r = MultiByteToWideChar(CP_UNIXCP, 0, src, -1, srcW, PATH_MAX); if(r == 0) - return 0; + return NULL; unix_path = wine_get_unix_file_name(srcW); if(!unix_path){ WARN("Unable to convert DOS filename to unix: %s\n", src); - return 0; + return NULL; } lstrcpynA(dst, unix_path, PATH_MAX); @@ -271,10 +272,19 @@ bool steamclient_dos_path_to_unix_path(const char *src, char *dst, int is_url) *d = 0; } - return 1; +done: + len = strlen( buffer ); + if (!(dst = HeapAlloc( GetProcessHeap(), 0, len + 1 ))) return NULL; + memcpy( dst, buffer, len + 1 ); + return dst; } -const char **steamclient_dos_to_unix_stringlist(const char **src) +void steamclient_free_path( const char *path ) +{ + HeapFree( GetProcessHeap(), 0, (char *)path ); +} + +const char **steamclient_dos_to_unix_path_array( const char **src ) { size_t len; const char **s; @@ -313,14 +323,12 @@ const char **steamclient_dos_to_unix_stringlist(const char **src) return (const char **)out; } -void steamclient_free_stringlist(const char **out) +void steamclient_free_path_array( const char **path_array ) { - if(out){ - const char **o; - for(o = out; *o; o++) - HeapFree(GetProcessHeap(), 0, (char *)*o); - HeapFree(GetProcessHeap(), 0, out); - } + const char **path; + if (!path_array) return; + for (path = path_array; *path; path++) HeapFree( GetProcessHeap(), 0, *(char **)path ); + HeapFree( GetProcessHeap(), 0, path_array ); } static BYTE *alloc_start, *alloc_end; diff --git a/lsteamclient/steamclient_private.h b/lsteamclient/steamclient_private.h index 2ec328d7..a82013f6 100644 --- a/lsteamclient/steamclient_private.h +++ b/lsteamclient/steamclient_private.h @@ -58,9 +58,12 @@ void lin_SteamInputActionEventCallbackPointer(SteamInputActionEvent_t *dat); struct w_steam_iface *create_win_interface(const char *name, void *linux_side); unsigned int steamclient_unix_path_to_dos_path(bool api_result, const char *src, char *dst, uint32 dst_bytes, int is_url); -bool steamclient_dos_path_to_unix_path(const char *src, char *dst, int is_url); -const char **steamclient_dos_to_unix_stringlist(const char **src); -void steamclient_free_stringlist(const char **out); + +extern const char *steamclient_dos_to_unix_path( const char *src, int is_url ); +extern void steamclient_free_path( const char *path_array ); +extern const char **steamclient_dos_to_unix_path_array( const char **src_array ); +extern void steamclient_free_path_array( const char **path_array ); + const char *steamclient_isteamcontroller_getglyph(int origin, const char *lin_path); const char *steamclient_isteaminput_getglyph(int origin, const char *lin_path); const char *steamclient_isteaminput_getglyph_xbox(int origin, const char *lin_path); diff --git a/lsteamclient/winISteamApps.c b/lsteamclient/winISteamApps.c index f70ef369..5a47fc08 100644 --- a/lsteamclient/winISteamApps.c +++ b/lsteamclient/winISteamApps.c @@ -1341,10 +1341,10 @@ void __thiscall winISteamApps_STEAMAPPS_INTERFACE_VERSION008_RequestAllProofOfPu SteamAPICall_t __thiscall winISteamApps_STEAMAPPS_INTERFACE_VERSION008_GetFileDetails(struct w_steam_iface *_this, const char *pszFileName) { SteamAPICall_t _ret; - char lin_pszFileName[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszFileName, lin_pszFileName, 0); + const char *u_pszFileName = steamclient_dos_to_unix_path( pszFileName, 0 ); TRACE("%p\n", _this); - _ret = cppISteamApps_STEAMAPPS_INTERFACE_VERSION008_GetFileDetails(_this->u_iface, pszFileName ? lin_pszFileName : NULL); + _ret = cppISteamApps_STEAMAPPS_INTERFACE_VERSION008_GetFileDetails(_this->u_iface, pszFileName ? u_pszFileName : NULL); + steamclient_free_path( u_pszFileName ); return _ret; } diff --git a/lsteamclient/winISteamController.c b/lsteamclient/winISteamController.c index 213abf28..136033de 100644 --- a/lsteamclient/winISteamController.c +++ b/lsteamclient/winISteamController.c @@ -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; } diff --git a/lsteamclient/winISteamHTMLSurface.c b/lsteamclient/winISteamHTMLSurface.c index 83a470bc..dfeb7f62 100644 --- a/lsteamclient/winISteamHTMLSurface.c +++ b/lsteamclient/winISteamHTMLSurface.c @@ -84,10 +84,10 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_Remo void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_LoadURL(struct w_steam_iface *_this, HHTMLBrowser unBrowserHandle, const char *pchURL, const char *pchPostData) { - char lin_pchURL[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchURL, lin_pchURL, 1); + const char *u_pchURL = steamclient_dos_to_unix_path( pchURL, 1 ); TRACE("%p\n", _this); - cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_LoadURL(_this->u_iface, unBrowserHandle, pchURL ? lin_pchURL : NULL, pchPostData); + cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_LoadURL(_this->u_iface, unBrowserHandle, pchURL ? u_pchURL : NULL, pchPostData); + steamclient_free_path( u_pchURL ); } void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_SetSize(struct w_steam_iface *_this, HHTMLBrowser unBrowserHandle, uint32 unWidth, uint32 unHeight) @@ -248,10 +248,10 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_JSDi void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_FileLoadDialogResponse(struct w_steam_iface *_this, HHTMLBrowser unBrowserHandle, const char **pchSelectedFiles) { - const char **lin_pchSelectedFiles = steamclient_dos_to_unix_stringlist(pchSelectedFiles); + const char **u_pchSelectedFiles = steamclient_dos_to_unix_path_array( pchSelectedFiles ); TRACE("%p\n", _this); - cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_FileLoadDialogResponse(_this->u_iface, unBrowserHandle, pchSelectedFiles ? lin_pchSelectedFiles : NULL); - steamclient_free_stringlist(lin_pchSelectedFiles); + cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_FileLoadDialogResponse(_this->u_iface, unBrowserHandle, pchSelectedFiles ? u_pchSelectedFiles : NULL); + steamclient_free_path_array( u_pchSelectedFiles ); } extern vtable_ptr winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_vtable; @@ -380,10 +380,10 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_Remo void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_LoadURL(struct w_steam_iface *_this, HHTMLBrowser unBrowserHandle, const char *pchURL, const char *pchPostData) { - char lin_pchURL[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchURL, lin_pchURL, 1); + const char *u_pchURL = steamclient_dos_to_unix_path( pchURL, 1 ); TRACE("%p\n", _this); - cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_LoadURL(_this->u_iface, unBrowserHandle, pchURL ? lin_pchURL : NULL, pchPostData); + cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_LoadURL(_this->u_iface, unBrowserHandle, pchURL ? u_pchURL : NULL, pchPostData); + steamclient_free_path( u_pchURL ); } void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_SetSize(struct w_steam_iface *_this, HHTMLBrowser unBrowserHandle, uint32 unWidth, uint32 unHeight) @@ -556,10 +556,10 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_JSDi void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_FileLoadDialogResponse(struct w_steam_iface *_this, HHTMLBrowser unBrowserHandle, const char **pchSelectedFiles) { - const char **lin_pchSelectedFiles = steamclient_dos_to_unix_stringlist(pchSelectedFiles); + const char **u_pchSelectedFiles = steamclient_dos_to_unix_path_array( pchSelectedFiles ); TRACE("%p\n", _this); - cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_FileLoadDialogResponse(_this->u_iface, unBrowserHandle, pchSelectedFiles ? lin_pchSelectedFiles : NULL); - steamclient_free_stringlist(lin_pchSelectedFiles); + cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_FileLoadDialogResponse(_this->u_iface, unBrowserHandle, pchSelectedFiles ? u_pchSelectedFiles : NULL); + steamclient_free_path_array( u_pchSelectedFiles ); } extern vtable_ptr winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_vtable; @@ -691,10 +691,10 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_Remo void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_LoadURL(struct w_steam_iface *_this, HHTMLBrowser unBrowserHandle, const char *pchURL, const char *pchPostData) { - char lin_pchURL[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchURL, lin_pchURL, 1); + const char *u_pchURL = steamclient_dos_to_unix_path( pchURL, 1 ); TRACE("%p\n", _this); - cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_LoadURL(_this->u_iface, unBrowserHandle, pchURL ? lin_pchURL : NULL, pchPostData); + cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_LoadURL(_this->u_iface, unBrowserHandle, pchURL ? u_pchURL : NULL, pchPostData); + steamclient_free_path( u_pchURL ); } void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_SetSize(struct w_steam_iface *_this, HHTMLBrowser unBrowserHandle, uint32 unWidth, uint32 unHeight) @@ -873,10 +873,10 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_JSDi void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_FileLoadDialogResponse(struct w_steam_iface *_this, HHTMLBrowser unBrowserHandle, const char **pchSelectedFiles) { - const char **lin_pchSelectedFiles = steamclient_dos_to_unix_stringlist(pchSelectedFiles); + const char **u_pchSelectedFiles = steamclient_dos_to_unix_path_array( pchSelectedFiles ); TRACE("%p\n", _this); - cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_FileLoadDialogResponse(_this->u_iface, unBrowserHandle, pchSelectedFiles ? lin_pchSelectedFiles : NULL); - steamclient_free_stringlist(lin_pchSelectedFiles); + cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_FileLoadDialogResponse(_this->u_iface, unBrowserHandle, pchSelectedFiles ? u_pchSelectedFiles : NULL); + steamclient_free_path_array( u_pchSelectedFiles ); } extern vtable_ptr winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_vtable; @@ -1010,10 +1010,10 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_Remo void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_LoadURL(struct w_steam_iface *_this, HHTMLBrowser unBrowserHandle, const char *pchURL, const char *pchPostData) { - char lin_pchURL[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchURL, lin_pchURL, 1); + const char *u_pchURL = steamclient_dos_to_unix_path( pchURL, 1 ); TRACE("%p\n", _this); - cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_LoadURL(_this->u_iface, unBrowserHandle, pchURL ? lin_pchURL : NULL, pchPostData); + cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_LoadURL(_this->u_iface, unBrowserHandle, pchURL ? u_pchURL : NULL, pchPostData); + steamclient_free_path( u_pchURL ); } void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_SetSize(struct w_steam_iface *_this, HHTMLBrowser unBrowserHandle, uint32 unWidth, uint32 unHeight) @@ -1198,10 +1198,10 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_JSDi void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_FileLoadDialogResponse(struct w_steam_iface *_this, HHTMLBrowser unBrowserHandle, const char **pchSelectedFiles) { - const char **lin_pchSelectedFiles = steamclient_dos_to_unix_stringlist(pchSelectedFiles); + const char **u_pchSelectedFiles = steamclient_dos_to_unix_path_array( pchSelectedFiles ); TRACE("%p\n", _this); - cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_FileLoadDialogResponse(_this->u_iface, unBrowserHandle, pchSelectedFiles ? lin_pchSelectedFiles : NULL); - steamclient_free_stringlist(lin_pchSelectedFiles); + cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_FileLoadDialogResponse(_this->u_iface, unBrowserHandle, pchSelectedFiles ? u_pchSelectedFiles : NULL); + steamclient_free_path_array( u_pchSelectedFiles ); } extern vtable_ptr winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_vtable; @@ -1337,10 +1337,10 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_Remo void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_LoadURL(struct w_steam_iface *_this, HHTMLBrowser unBrowserHandle, const char *pchURL, const char *pchPostData) { - char lin_pchURL[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchURL, lin_pchURL, 1); + const char *u_pchURL = steamclient_dos_to_unix_path( pchURL, 1 ); TRACE("%p\n", _this); - cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_LoadURL(_this->u_iface, unBrowserHandle, pchURL ? lin_pchURL : NULL, pchPostData); + cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_LoadURL(_this->u_iface, unBrowserHandle, pchURL ? u_pchURL : NULL, pchPostData); + steamclient_free_path( u_pchURL ); } void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_SetSize(struct w_steam_iface *_this, HHTMLBrowser unBrowserHandle, uint32 unWidth, uint32 unHeight) @@ -1531,10 +1531,10 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_JSDi void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_FileLoadDialogResponse(struct w_steam_iface *_this, HHTMLBrowser unBrowserHandle, const char **pchSelectedFiles) { - const char **lin_pchSelectedFiles = steamclient_dos_to_unix_stringlist(pchSelectedFiles); + const char **u_pchSelectedFiles = steamclient_dos_to_unix_path_array( pchSelectedFiles ); TRACE("%p\n", _this); - cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_FileLoadDialogResponse(_this->u_iface, unBrowserHandle, pchSelectedFiles ? lin_pchSelectedFiles : NULL); - steamclient_free_stringlist(lin_pchSelectedFiles); + cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_FileLoadDialogResponse(_this->u_iface, unBrowserHandle, pchSelectedFiles ? u_pchSelectedFiles : NULL); + steamclient_free_path_array( u_pchSelectedFiles ); } extern vtable_ptr winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_vtable; diff --git a/lsteamclient/winISteamInput.c b/lsteamclient/winISteamInput.c index 64b7b09f..14d81458 100644 --- a/lsteamclient/winISteamInput.c +++ b/lsteamclient/winISteamInput.c @@ -782,10 +782,10 @@ bool __thiscall winISteamInput_SteamInput005_Shutdown(struct w_steam_iface *_thi bool __thiscall winISteamInput_SteamInput005_SetInputActionManifestFilePath(struct w_steam_iface *_this, const char *pchInputActionManifestAbsolutePath) { bool _ret; - char lin_pchInputActionManifestAbsolutePath[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchInputActionManifestAbsolutePath, lin_pchInputActionManifestAbsolutePath, 0); + const char *u_pchInputActionManifestAbsolutePath = steamclient_dos_to_unix_path( pchInputActionManifestAbsolutePath, 0 ); TRACE("%p\n", _this); - _ret = cppISteamInput_SteamInput005_SetInputActionManifestFilePath(_this->u_iface, pchInputActionManifestAbsolutePath ? lin_pchInputActionManifestAbsolutePath : NULL); + _ret = cppISteamInput_SteamInput005_SetInputActionManifestFilePath(_this->u_iface, pchInputActionManifestAbsolutePath ? u_pchInputActionManifestAbsolutePath : NULL); + steamclient_free_path( u_pchInputActionManifestAbsolutePath ); return _ret; } @@ -1247,10 +1247,10 @@ bool __thiscall winISteamInput_SteamInput006_Shutdown(struct w_steam_iface *_thi bool __thiscall winISteamInput_SteamInput006_SetInputActionManifestFilePath(struct w_steam_iface *_this, const char *pchInputActionManifestAbsolutePath) { bool _ret; - char lin_pchInputActionManifestAbsolutePath[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchInputActionManifestAbsolutePath, lin_pchInputActionManifestAbsolutePath, 0); + const char *u_pchInputActionManifestAbsolutePath = steamclient_dos_to_unix_path( pchInputActionManifestAbsolutePath, 0 ); TRACE("%p\n", _this); - _ret = cppISteamInput_SteamInput006_SetInputActionManifestFilePath(_this->u_iface, pchInputActionManifestAbsolutePath ? lin_pchInputActionManifestAbsolutePath : NULL); + _ret = cppISteamInput_SteamInput006_SetInputActionManifestFilePath(_this->u_iface, pchInputActionManifestAbsolutePath ? u_pchInputActionManifestAbsolutePath : NULL); + steamclient_free_path( u_pchInputActionManifestAbsolutePath ); return _ret; } diff --git a/lsteamclient/winISteamRemoteStorage.c b/lsteamclient/winISteamRemoteStorage.c index 39b3fc03..c7e2ae37 100644 --- a/lsteamclient/winISteamRemoteStorage.c +++ b/lsteamclient/winISteamRemoteStorage.c @@ -890,12 +890,12 @@ SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VE SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_PublishWorkshopFile(struct w_steam_iface *_this, const char *pchFile, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, SteamParamStringArray_t *pTags) { SteamAPICall_t _ret; - char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_PublishWorkshopFile(_this->u_iface, pchFile ? lin_pchFile : NULL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, pTags); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_PublishWorkshopFile(_this->u_iface, pchFile ? u_pchFile : NULL, pchPreviewFile ? u_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, pTags); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -1241,12 +1241,12 @@ UGCHandle_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSI SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_PublishWorkshopFile(struct w_steam_iface *_this, const char *pchFile, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags, EWorkshopFileType eWorkshopFileType) { SteamAPICall_t _ret; - char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_PublishWorkshopFile(_this->u_iface, pchFile ? lin_pchFile : NULL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_PublishWorkshopFile(_this->u_iface, pchFile ? u_pchFile : NULL, pchPreviewFile ? u_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -1261,20 +1261,20 @@ PublishedFileUpdateHandle_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_UpdatePublishedFileFile(struct w_steam_iface *_this, PublishedFileUpdateHandle_t updateHandle, const char *pchFile) { bool _ret; - char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); + const char *u_pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_UpdatePublishedFileFile(_this->u_iface, updateHandle, pchFile ? lin_pchFile : NULL); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_UpdatePublishedFileFile(_this->u_iface, updateHandle, pchFile ? u_pchFile : NULL); + steamclient_free_path( u_pchFile ); return _ret; } bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_UpdatePublishedFilePreviewFile(struct w_steam_iface *_this, PublishedFileUpdateHandle_t updateHandle, const char *pchPreviewFile) { bool _ret; - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_UpdatePublishedFilePreviewFile(_this->u_iface, updateHandle, pchPreviewFile ? lin_pchPreviewFile : NULL); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_UpdatePublishedFilePreviewFile(_this->u_iface, updateHandle, pchPreviewFile ? u_pchPreviewFile : NULL); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -1409,10 +1409,10 @@ SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VE SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_PublishVideo(struct w_steam_iface *_this, const char *pchVideoURL, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags) { SteamAPICall_t _ret; - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_PublishVideo(_this->u_iface, pchVideoURL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_PublishVideo(_this->u_iface, pchVideoURL, pchPreviewFile ? u_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -1742,12 +1742,12 @@ UGCHandle_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSI SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_PublishWorkshopFile(struct w_steam_iface *_this, const char *pchFile, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags, EWorkshopFileType eWorkshopFileType) { SteamAPICall_t _ret; - char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_PublishWorkshopFile(_this->u_iface, pchFile ? lin_pchFile : NULL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_PublishWorkshopFile(_this->u_iface, pchFile ? u_pchFile : NULL, pchPreviewFile ? u_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -1762,20 +1762,20 @@ PublishedFileUpdateHandle_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_UpdatePublishedFileFile(struct w_steam_iface *_this, PublishedFileUpdateHandle_t updateHandle, const char *pchFile) { bool _ret; - char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); + const char *u_pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_UpdatePublishedFileFile(_this->u_iface, updateHandle, pchFile ? lin_pchFile : NULL); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_UpdatePublishedFileFile(_this->u_iface, updateHandle, pchFile ? u_pchFile : NULL); + steamclient_free_path( u_pchFile ); return _ret; } bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_UpdatePublishedFilePreviewFile(struct w_steam_iface *_this, PublishedFileUpdateHandle_t updateHandle, const char *pchPreviewFile) { bool _ret; - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_UpdatePublishedFilePreviewFile(_this->u_iface, updateHandle, pchPreviewFile ? lin_pchPreviewFile : NULL); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_UpdatePublishedFilePreviewFile(_this->u_iface, updateHandle, pchPreviewFile ? u_pchPreviewFile : NULL); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -1910,10 +1910,10 @@ SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VE SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_PublishVideo(struct w_steam_iface *_this, EWorkshopVideoProvider eVideoProvider, const char *pchVideoAccount, const char *pchVideoIdentifier, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags) { SteamAPICall_t _ret; - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_PublishVideo(_this->u_iface, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_PublishVideo(_this->u_iface, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? u_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -2279,12 +2279,12 @@ UGCHandle_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSI SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_PublishWorkshopFile(struct w_steam_iface *_this, const char *pchFile, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags, EWorkshopFileType eWorkshopFileType) { SteamAPICall_t _ret; - char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_PublishWorkshopFile(_this->u_iface, pchFile ? lin_pchFile : NULL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_PublishWorkshopFile(_this->u_iface, pchFile ? u_pchFile : NULL, pchPreviewFile ? u_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -2299,20 +2299,20 @@ PublishedFileUpdateHandle_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_UpdatePublishedFileFile(struct w_steam_iface *_this, PublishedFileUpdateHandle_t updateHandle, const char *pchFile) { bool _ret; - char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); + const char *u_pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_UpdatePublishedFileFile(_this->u_iface, updateHandle, pchFile ? lin_pchFile : NULL); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_UpdatePublishedFileFile(_this->u_iface, updateHandle, pchFile ? u_pchFile : NULL); + steamclient_free_path( u_pchFile ); return _ret; } bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_UpdatePublishedFilePreviewFile(struct w_steam_iface *_this, PublishedFileUpdateHandle_t updateHandle, const char *pchPreviewFile) { bool _ret; - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_UpdatePublishedFilePreviewFile(_this->u_iface, updateHandle, pchPreviewFile ? lin_pchPreviewFile : NULL); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_UpdatePublishedFilePreviewFile(_this->u_iface, updateHandle, pchPreviewFile ? u_pchPreviewFile : NULL); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -2447,10 +2447,10 @@ SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VE SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_PublishVideo(struct w_steam_iface *_this, EWorkshopVideoProvider eVideoProvider, const char *pchVideoAccount, const char *pchVideoIdentifier, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags) { SteamAPICall_t _ret; - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_PublishVideo(_this->u_iface, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_PublishVideo(_this->u_iface, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? u_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -2820,12 +2820,12 @@ UGCHandle_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSI SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_PublishWorkshopFile(struct w_steam_iface *_this, const char *pchFile, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags, EWorkshopFileType eWorkshopFileType) { SteamAPICall_t _ret; - char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_PublishWorkshopFile(_this->u_iface, pchFile ? lin_pchFile : NULL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_PublishWorkshopFile(_this->u_iface, pchFile ? u_pchFile : NULL, pchPreviewFile ? u_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -2840,20 +2840,20 @@ PublishedFileUpdateHandle_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_UpdatePublishedFileFile(struct w_steam_iface *_this, PublishedFileUpdateHandle_t updateHandle, const char *pchFile) { bool _ret; - char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); + const char *u_pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_UpdatePublishedFileFile(_this->u_iface, updateHandle, pchFile ? lin_pchFile : NULL); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_UpdatePublishedFileFile(_this->u_iface, updateHandle, pchFile ? u_pchFile : NULL); + steamclient_free_path( u_pchFile ); return _ret; } bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_UpdatePublishedFilePreviewFile(struct w_steam_iface *_this, PublishedFileUpdateHandle_t updateHandle, const char *pchPreviewFile) { bool _ret; - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_UpdatePublishedFilePreviewFile(_this->u_iface, updateHandle, pchPreviewFile ? lin_pchPreviewFile : NULL); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_UpdatePublishedFilePreviewFile(_this->u_iface, updateHandle, pchPreviewFile ? u_pchPreviewFile : NULL); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -2988,10 +2988,10 @@ SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VE SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_PublishVideo(struct w_steam_iface *_this, EWorkshopVideoProvider eVideoProvider, const char *pchVideoAccount, const char *pchVideoIdentifier, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags) { SteamAPICall_t _ret; - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_PublishVideo(_this->u_iface, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_PublishVideo(_this->u_iface, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? u_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -3362,12 +3362,12 @@ UGCHandle_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSI SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_PublishWorkshopFile(struct w_steam_iface *_this, const char *pchFile, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags, EWorkshopFileType eWorkshopFileType) { SteamAPICall_t _ret; - char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_PublishWorkshopFile(_this->u_iface, pchFile ? lin_pchFile : NULL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_PublishWorkshopFile(_this->u_iface, pchFile ? u_pchFile : NULL, pchPreviewFile ? u_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -3382,20 +3382,20 @@ PublishedFileUpdateHandle_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UpdatePublishedFileFile(struct w_steam_iface *_this, PublishedFileUpdateHandle_t updateHandle, const char *pchFile) { bool _ret; - char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); + const char *u_pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UpdatePublishedFileFile(_this->u_iface, updateHandle, pchFile ? lin_pchFile : NULL); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UpdatePublishedFileFile(_this->u_iface, updateHandle, pchFile ? u_pchFile : NULL); + steamclient_free_path( u_pchFile ); return _ret; } bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UpdatePublishedFilePreviewFile(struct w_steam_iface *_this, PublishedFileUpdateHandle_t updateHandle, const char *pchPreviewFile) { bool _ret; - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UpdatePublishedFilePreviewFile(_this->u_iface, updateHandle, pchPreviewFile ? lin_pchPreviewFile : NULL); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UpdatePublishedFilePreviewFile(_this->u_iface, updateHandle, pchPreviewFile ? u_pchPreviewFile : NULL); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -3530,10 +3530,10 @@ SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VE SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_PublishVideo(struct w_steam_iface *_this, EWorkshopVideoProvider eVideoProvider, const char *pchVideoAccount, const char *pchVideoIdentifier, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags) { SteamAPICall_t _ret; - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_PublishVideo(_this->u_iface, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_PublishVideo(_this->u_iface, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? u_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -3564,10 +3564,10 @@ SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VE SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UGCDownloadToLocation(struct w_steam_iface *_this, UGCHandle_t hContent, const char *pchLocation, uint32 unPriority) { SteamAPICall_t _ret; - char lin_pchLocation[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchLocation, lin_pchLocation, 0); + const char *u_pchLocation = steamclient_dos_to_unix_path( pchLocation, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UGCDownloadToLocation(_this->u_iface, hContent, pchLocation ? lin_pchLocation : NULL, unPriority); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UGCDownloadToLocation(_this->u_iface, hContent, pchLocation ? u_pchLocation : NULL, unPriority); + steamclient_free_path( u_pchLocation ); return _ret; } @@ -3915,12 +3915,12 @@ UGCHandle_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSI SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_PublishWorkshopFile(struct w_steam_iface *_this, const char *pchFile, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags, EWorkshopFileType eWorkshopFileType) { SteamAPICall_t _ret; - char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_PublishWorkshopFile(_this->u_iface, pchFile ? lin_pchFile : NULL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_PublishWorkshopFile(_this->u_iface, pchFile ? u_pchFile : NULL, pchPreviewFile ? u_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -3935,20 +3935,20 @@ PublishedFileUpdateHandle_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UpdatePublishedFileFile(struct w_steam_iface *_this, PublishedFileUpdateHandle_t updateHandle, const char *pchFile) { bool _ret; - char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); + const char *u_pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UpdatePublishedFileFile(_this->u_iface, updateHandle, pchFile ? lin_pchFile : NULL); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UpdatePublishedFileFile(_this->u_iface, updateHandle, pchFile ? u_pchFile : NULL); + steamclient_free_path( u_pchFile ); return _ret; } bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UpdatePublishedFilePreviewFile(struct w_steam_iface *_this, PublishedFileUpdateHandle_t updateHandle, const char *pchPreviewFile) { bool _ret; - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UpdatePublishedFilePreviewFile(_this->u_iface, updateHandle, pchPreviewFile ? lin_pchPreviewFile : NULL); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UpdatePublishedFilePreviewFile(_this->u_iface, updateHandle, pchPreviewFile ? u_pchPreviewFile : NULL); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -4083,10 +4083,10 @@ SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VE SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_PublishVideo(struct w_steam_iface *_this, EWorkshopVideoProvider eVideoProvider, const char *pchVideoAccount, const char *pchVideoIdentifier, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags) { SteamAPICall_t _ret; - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_PublishVideo(_this->u_iface, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_PublishVideo(_this->u_iface, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? u_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -4117,10 +4117,10 @@ SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VE SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UGCDownloadToLocation(struct w_steam_iface *_this, UGCHandle_t hContent, const char *pchLocation, uint32 unPriority) { SteamAPICall_t _ret; - char lin_pchLocation[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchLocation, lin_pchLocation, 0); + const char *u_pchLocation = steamclient_dos_to_unix_path( pchLocation, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UGCDownloadToLocation(_this->u_iface, hContent, pchLocation ? lin_pchLocation : NULL, unPriority); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UGCDownloadToLocation(_this->u_iface, hContent, pchLocation ? u_pchLocation : NULL, unPriority); + steamclient_free_path( u_pchLocation ); return _ret; } @@ -4468,12 +4468,12 @@ UGCHandle_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSI SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_PublishWorkshopFile(struct w_steam_iface *_this, const char *pchFile, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags, EWorkshopFileType eWorkshopFileType) { SteamAPICall_t _ret; - char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_PublishWorkshopFile(_this->u_iface, pchFile ? lin_pchFile : NULL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_PublishWorkshopFile(_this->u_iface, pchFile ? u_pchFile : NULL, pchPreviewFile ? u_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -4488,20 +4488,20 @@ PublishedFileUpdateHandle_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UpdatePublishedFileFile(struct w_steam_iface *_this, PublishedFileUpdateHandle_t updateHandle, const char *pchFile) { bool _ret; - char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); + const char *u_pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UpdatePublishedFileFile(_this->u_iface, updateHandle, pchFile ? lin_pchFile : NULL); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UpdatePublishedFileFile(_this->u_iface, updateHandle, pchFile ? u_pchFile : NULL); + steamclient_free_path( u_pchFile ); return _ret; } bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UpdatePublishedFilePreviewFile(struct w_steam_iface *_this, PublishedFileUpdateHandle_t updateHandle, const char *pchPreviewFile) { bool _ret; - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UpdatePublishedFilePreviewFile(_this->u_iface, updateHandle, pchPreviewFile ? lin_pchPreviewFile : NULL); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UpdatePublishedFilePreviewFile(_this->u_iface, updateHandle, pchPreviewFile ? u_pchPreviewFile : NULL); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -4636,10 +4636,10 @@ SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VE SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_PublishVideo(struct w_steam_iface *_this, EWorkshopVideoProvider eVideoProvider, const char *pchVideoAccount, const char *pchVideoIdentifier, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags) { SteamAPICall_t _ret; - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_PublishVideo(_this->u_iface, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_PublishVideo(_this->u_iface, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? u_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -4670,10 +4670,10 @@ SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VE SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UGCDownloadToLocation(struct w_steam_iface *_this, UGCHandle_t hContent, const char *pchLocation, uint32 unPriority) { SteamAPICall_t _ret; - char lin_pchLocation[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchLocation, lin_pchLocation, 0); + const char *u_pchLocation = steamclient_dos_to_unix_path( pchLocation, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UGCDownloadToLocation(_this->u_iface, hContent, pchLocation ? lin_pchLocation : NULL, unPriority); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UGCDownloadToLocation(_this->u_iface, hContent, pchLocation ? u_pchLocation : NULL, unPriority); + steamclient_free_path( u_pchLocation ); return _ret; } @@ -5048,12 +5048,12 @@ UGCHandle_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSI SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_PublishWorkshopFile(struct w_steam_iface *_this, const char *pchFile, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags, EWorkshopFileType eWorkshopFileType) { SteamAPICall_t _ret; - char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_PublishWorkshopFile(_this->u_iface, pchFile ? lin_pchFile : NULL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_PublishWorkshopFile(_this->u_iface, pchFile ? u_pchFile : NULL, pchPreviewFile ? u_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -5068,20 +5068,20 @@ PublishedFileUpdateHandle_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UpdatePublishedFileFile(struct w_steam_iface *_this, PublishedFileUpdateHandle_t updateHandle, const char *pchFile) { bool _ret; - char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); + const char *u_pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UpdatePublishedFileFile(_this->u_iface, updateHandle, pchFile ? lin_pchFile : NULL); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UpdatePublishedFileFile(_this->u_iface, updateHandle, pchFile ? u_pchFile : NULL); + steamclient_free_path( u_pchFile ); return _ret; } bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UpdatePublishedFilePreviewFile(struct w_steam_iface *_this, PublishedFileUpdateHandle_t updateHandle, const char *pchPreviewFile) { bool _ret; - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UpdatePublishedFilePreviewFile(_this->u_iface, updateHandle, pchPreviewFile ? lin_pchPreviewFile : NULL); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UpdatePublishedFilePreviewFile(_this->u_iface, updateHandle, pchPreviewFile ? u_pchPreviewFile : NULL); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -5216,10 +5216,10 @@ SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VE SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_PublishVideo(struct w_steam_iface *_this, EWorkshopVideoProvider eVideoProvider, const char *pchVideoAccount, const char *pchVideoIdentifier, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags) { SteamAPICall_t _ret; - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_PublishVideo(_this->u_iface, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_PublishVideo(_this->u_iface, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? u_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -5250,10 +5250,10 @@ SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VE SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UGCDownloadToLocation(struct w_steam_iface *_this, UGCHandle_t hContent, const char *pchLocation, uint32 unPriority) { SteamAPICall_t _ret; - char lin_pchLocation[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchLocation, lin_pchLocation, 0); + const char *u_pchLocation = steamclient_dos_to_unix_path( pchLocation, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UGCDownloadToLocation(_this->u_iface, hContent, pchLocation ? lin_pchLocation : NULL, unPriority); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UGCDownloadToLocation(_this->u_iface, hContent, pchLocation ? u_pchLocation : NULL, unPriority); + steamclient_free_path( u_pchLocation ); return _ret; } @@ -5631,12 +5631,12 @@ UGCHandle_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSI SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_PublishWorkshopFile(struct w_steam_iface *_this, const char *pchFile, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags, EWorkshopFileType eWorkshopFileType) { SteamAPICall_t _ret; - char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_PublishWorkshopFile(_this->u_iface, pchFile ? lin_pchFile : NULL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_PublishWorkshopFile(_this->u_iface, pchFile ? u_pchFile : NULL, pchPreviewFile ? u_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -5651,20 +5651,20 @@ PublishedFileUpdateHandle_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UpdatePublishedFileFile(struct w_steam_iface *_this, PublishedFileUpdateHandle_t updateHandle, const char *pchFile) { bool _ret; - char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); + const char *u_pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UpdatePublishedFileFile(_this->u_iface, updateHandle, pchFile ? lin_pchFile : NULL); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UpdatePublishedFileFile(_this->u_iface, updateHandle, pchFile ? u_pchFile : NULL); + steamclient_free_path( u_pchFile ); return _ret; } bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UpdatePublishedFilePreviewFile(struct w_steam_iface *_this, PublishedFileUpdateHandle_t updateHandle, const char *pchPreviewFile) { bool _ret; - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UpdatePublishedFilePreviewFile(_this->u_iface, updateHandle, pchPreviewFile ? lin_pchPreviewFile : NULL); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UpdatePublishedFilePreviewFile(_this->u_iface, updateHandle, pchPreviewFile ? u_pchPreviewFile : NULL); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -5799,10 +5799,10 @@ SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VE SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_PublishVideo(struct w_steam_iface *_this, EWorkshopVideoProvider eVideoProvider, const char *pchVideoAccount, const char *pchVideoIdentifier, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags) { SteamAPICall_t _ret; - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_PublishVideo(_this->u_iface, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_PublishVideo(_this->u_iface, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? u_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -5833,10 +5833,10 @@ SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VE SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UGCDownloadToLocation(struct w_steam_iface *_this, UGCHandle_t hContent, const char *pchLocation, uint32 unPriority) { SteamAPICall_t _ret; - char lin_pchLocation[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchLocation, lin_pchLocation, 0); + const char *u_pchLocation = steamclient_dos_to_unix_path( pchLocation, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UGCDownloadToLocation(_this->u_iface, hContent, pchLocation ? lin_pchLocation : NULL, unPriority); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UGCDownloadToLocation(_this->u_iface, hContent, pchLocation ? u_pchLocation : NULL, unPriority); + steamclient_free_path( u_pchLocation ); return _ret; } @@ -6218,12 +6218,12 @@ UGCHandle_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSI SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_PublishWorkshopFile(struct w_steam_iface *_this, const char *pchFile, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags, EWorkshopFileType eWorkshopFileType) { SteamAPICall_t _ret; - char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_PublishWorkshopFile(_this->u_iface, pchFile ? lin_pchFile : NULL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_PublishWorkshopFile(_this->u_iface, pchFile ? u_pchFile : NULL, pchPreviewFile ? u_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -6238,20 +6238,20 @@ PublishedFileUpdateHandle_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_UpdatePublishedFileFile(struct w_steam_iface *_this, PublishedFileUpdateHandle_t updateHandle, const char *pchFile) { bool _ret; - char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); + const char *u_pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_UpdatePublishedFileFile(_this->u_iface, updateHandle, pchFile ? lin_pchFile : NULL); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_UpdatePublishedFileFile(_this->u_iface, updateHandle, pchFile ? u_pchFile : NULL); + steamclient_free_path( u_pchFile ); return _ret; } bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_UpdatePublishedFilePreviewFile(struct w_steam_iface *_this, PublishedFileUpdateHandle_t updateHandle, const char *pchPreviewFile) { bool _ret; - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_UpdatePublishedFilePreviewFile(_this->u_iface, updateHandle, pchPreviewFile ? lin_pchPreviewFile : NULL); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_UpdatePublishedFilePreviewFile(_this->u_iface, updateHandle, pchPreviewFile ? u_pchPreviewFile : NULL); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -6386,10 +6386,10 @@ SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VE SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_PublishVideo(struct w_steam_iface *_this, EWorkshopVideoProvider eVideoProvider, const char *pchVideoAccount, const char *pchVideoIdentifier, const char *pchPreviewFile, AppId_t nConsumerAppId, const char *pchTitle, const char *pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t *pTags) { SteamAPICall_t _ret; - char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); + const char *u_pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_PublishVideo(_this->u_iface, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_PublishVideo(_this->u_iface, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? u_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); + steamclient_free_path( u_pchPreviewFile ); return _ret; } @@ -6420,10 +6420,10 @@ SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VE SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_UGCDownloadToLocation(struct w_steam_iface *_this, UGCHandle_t hContent, const char *pchLocation, uint32 unPriority) { SteamAPICall_t _ret; - char lin_pchLocation[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchLocation, lin_pchLocation, 0); + const char *u_pchLocation = steamclient_dos_to_unix_path( pchLocation, 0 ); TRACE("%p\n", _this); - _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_UGCDownloadToLocation(_this->u_iface, hContent, pchLocation ? lin_pchLocation : NULL, unPriority); + _ret = cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_UGCDownloadToLocation(_this->u_iface, hContent, pchLocation ? u_pchLocation : NULL, unPriority); + steamclient_free_path( u_pchLocation ); return _ret; } diff --git a/lsteamclient/winISteamScreenshots.c b/lsteamclient/winISteamScreenshots.c index 9b73668c..8eb6ed26 100644 --- a/lsteamclient/winISteamScreenshots.c +++ b/lsteamclient/winISteamScreenshots.c @@ -33,12 +33,12 @@ ScreenshotHandle __thiscall winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERS ScreenshotHandle __thiscall winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION001_AddScreenshotToLibrary(struct w_steam_iface *_this, const char *pchFilename, const char *pchThumbnailFilename, int nWidth, int nHeight) { ScreenshotHandle _ret; - char lin_pchFilename[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFilename, lin_pchFilename, 0); - char lin_pchThumbnailFilename[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchThumbnailFilename, lin_pchThumbnailFilename, 0); + const char *u_pchFilename = steamclient_dos_to_unix_path( pchFilename, 0 ); + const char *u_pchThumbnailFilename = steamclient_dos_to_unix_path( pchThumbnailFilename, 0 ); TRACE("%p\n", _this); - _ret = cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION001_AddScreenshotToLibrary(_this->u_iface, pchFilename ? lin_pchFilename : NULL, pchThumbnailFilename ? lin_pchThumbnailFilename : NULL, nWidth, nHeight); + _ret = cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION001_AddScreenshotToLibrary(_this->u_iface, pchFilename ? u_pchFilename : NULL, pchThumbnailFilename ? u_pchThumbnailFilename : NULL, nWidth, nHeight); + steamclient_free_path( u_pchFilename ); + steamclient_free_path( u_pchThumbnailFilename ); return _ret; } @@ -117,12 +117,12 @@ ScreenshotHandle __thiscall winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERS ScreenshotHandle __thiscall winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_AddScreenshotToLibrary(struct w_steam_iface *_this, const char *pchFilename, const char *pchThumbnailFilename, int nWidth, int nHeight) { ScreenshotHandle _ret; - char lin_pchFilename[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFilename, lin_pchFilename, 0); - char lin_pchThumbnailFilename[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchThumbnailFilename, lin_pchThumbnailFilename, 0); + const char *u_pchFilename = steamclient_dos_to_unix_path( pchFilename, 0 ); + const char *u_pchThumbnailFilename = steamclient_dos_to_unix_path( pchThumbnailFilename, 0 ); TRACE("%p\n", _this); - _ret = cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_AddScreenshotToLibrary(_this->u_iface, pchFilename ? lin_pchFilename : NULL, pchThumbnailFilename ? lin_pchThumbnailFilename : NULL, nWidth, nHeight); + _ret = cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_AddScreenshotToLibrary(_this->u_iface, pchFilename ? u_pchFilename : NULL, pchThumbnailFilename ? u_pchThumbnailFilename : NULL, nWidth, nHeight); + steamclient_free_path( u_pchFilename ); + steamclient_free_path( u_pchThumbnailFilename ); return _ret; } @@ -212,12 +212,12 @@ ScreenshotHandle __thiscall winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERS ScreenshotHandle __thiscall winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003_AddScreenshotToLibrary(struct w_steam_iface *_this, const char *pchFilename, const char *pchThumbnailFilename, int nWidth, int nHeight) { ScreenshotHandle _ret; - char lin_pchFilename[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFilename, lin_pchFilename, 0); - char lin_pchThumbnailFilename[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchThumbnailFilename, lin_pchThumbnailFilename, 0); + const char *u_pchFilename = steamclient_dos_to_unix_path( pchFilename, 0 ); + const char *u_pchThumbnailFilename = steamclient_dos_to_unix_path( pchThumbnailFilename, 0 ); TRACE("%p\n", _this); - _ret = cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003_AddScreenshotToLibrary(_this->u_iface, pchFilename ? lin_pchFilename : NULL, pchThumbnailFilename ? lin_pchThumbnailFilename : NULL, nWidth, nHeight); + _ret = cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003_AddScreenshotToLibrary(_this->u_iface, pchFilename ? u_pchFilename : NULL, pchThumbnailFilename ? u_pchThumbnailFilename : NULL, nWidth, nHeight); + steamclient_free_path( u_pchFilename ); + steamclient_free_path( u_pchThumbnailFilename ); return _ret; } @@ -268,12 +268,12 @@ bool __thiscall winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003_IsScr ScreenshotHandle __thiscall winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003_AddVRScreenshotToLibrary(struct w_steam_iface *_this, EVRScreenshotType eType, const char *pchFilename, const char *pchVRFilename) { ScreenshotHandle _ret; - char lin_pchFilename[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFilename, lin_pchFilename, 0); - char lin_pchVRFilename[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchVRFilename, lin_pchVRFilename, 0); + const char *u_pchFilename = steamclient_dos_to_unix_path( pchFilename, 0 ); + const char *u_pchVRFilename = steamclient_dos_to_unix_path( pchVRFilename, 0 ); TRACE("%p\n", _this); - _ret = cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003_AddVRScreenshotToLibrary(_this->u_iface, eType, pchFilename ? lin_pchFilename : NULL, pchVRFilename ? lin_pchVRFilename : NULL); + _ret = cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003_AddVRScreenshotToLibrary(_this->u_iface, eType, pchFilename ? u_pchFilename : NULL, pchVRFilename ? u_pchVRFilename : NULL); + steamclient_free_path( u_pchFilename ); + steamclient_free_path( u_pchVRFilename ); return _ret; } diff --git a/lsteamclient/winISteamUGC.c b/lsteamclient/winISteamUGC.c index 0f579fbc..4039de0b 100644 --- a/lsteamclient/winISteamUGC.c +++ b/lsteamclient/winISteamUGC.c @@ -381,20 +381,20 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemTags(struct w_ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemContent(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszContentFolder) { bool _ret; - char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); + const char *u_pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemContent(_this->u_iface, handle, pszContentFolder ? lin_pszContentFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemContent(_this->u_iface, handle, pszContentFolder ? u_pszContentFolder : NULL); + steamclient_free_path( u_pszContentFolder ); return _ret; } bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemPreview(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -719,20 +719,20 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemTags(struct w_ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemContent(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszContentFolder) { bool _ret; - char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); + const char *u_pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemContent(_this->u_iface, handle, pszContentFolder ? lin_pszContentFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemContent(_this->u_iface, handle, pszContentFolder ? u_pszContentFolder : NULL); + steamclient_free_path( u_pszContentFolder ); return _ret; } bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemPreview(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -1059,20 +1059,20 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemTags(struct w_ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemContent(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszContentFolder) { bool _ret; - char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); + const char *u_pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemContent(_this->u_iface, handle, pszContentFolder ? lin_pszContentFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemContent(_this->u_iface, handle, pszContentFolder ? u_pszContentFolder : NULL); + steamclient_free_path( u_pszContentFolder ); return _ret; } bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemPreview(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -1519,20 +1519,20 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemTags(struct w_ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemContent(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszContentFolder) { bool _ret; - char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); + const char *u_pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemContent(_this->u_iface, handle, pszContentFolder ? lin_pszContentFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemContent(_this->u_iface, handle, pszContentFolder ? u_pszContentFolder : NULL); + steamclient_free_path( u_pszContentFolder ); return _ret; } bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemPreview(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -2028,20 +2028,20 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemTags(struct w_ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemContent(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszContentFolder) { bool _ret; - char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); + const char *u_pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemContent(_this->u_iface, handle, pszContentFolder ? lin_pszContentFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemContent(_this->u_iface, handle, pszContentFolder ? u_pszContentFolder : NULL); + steamclient_free_path( u_pszContentFolder ); return _ret; } bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemPreview(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -2597,20 +2597,20 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemTags(struct w_ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemContent(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszContentFolder) { bool _ret; - char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); + const char *u_pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemContent(_this->u_iface, handle, pszContentFolder ? lin_pszContentFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemContent(_this->u_iface, handle, pszContentFolder ? u_pszContentFolder : NULL); + steamclient_free_path( u_pszContentFolder ); return _ret; } bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemPreview(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -2746,10 +2746,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION007_DownloadItem(struct w bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION007_BInitWorkshopForGameServer(struct w_steam_iface *_this, DepotId_t unWorkshopDepotID, const char *pszFolder) { bool _ret; - char lin_pszFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszFolder, lin_pszFolder, 0); + const char *u_pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION007_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? lin_pszFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION007_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? u_pszFolder : NULL); + steamclient_free_path( u_pszFolder ); return _ret; } @@ -3211,20 +3211,20 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemTags(struct w_ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemContent(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszContentFolder) { bool _ret; - char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); + const char *u_pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemContent(_this->u_iface, handle, pszContentFolder ? lin_pszContentFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemContent(_this->u_iface, handle, pszContentFolder ? u_pszContentFolder : NULL); + steamclient_free_path( u_pszContentFolder ); return _ret; } bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemPreview(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -3247,10 +3247,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_AddItemKeyValueTag(st bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_AddItemPreviewFile(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile, EItemPreviewType type) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_AddItemPreviewFile(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL, type); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_AddItemPreviewFile(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL, type); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -3265,10 +3265,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_AddItemPreviewVideo(s bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_UpdateItemPreviewFile(struct w_steam_iface *_this, UGCUpdateHandle_t handle, uint32 index, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_UpdateItemPreviewFile(_this->u_iface, handle, index, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_UpdateItemPreviewFile(_this->u_iface, handle, index, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -3404,10 +3404,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_DownloadItem(struct w bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_BInitWorkshopForGameServer(struct w_steam_iface *_this, DepotId_t unWorkshopDepotID, const char *pszFolder) { bool _ret; - char lin_pszFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszFolder, lin_pszFolder, 0); + const char *u_pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? lin_pszFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? u_pszFolder : NULL); + steamclient_free_path( u_pszFolder ); return _ret; } @@ -3886,20 +3886,20 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemTags(struct w_ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemContent(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszContentFolder) { bool _ret; - char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); + const char *u_pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemContent(_this->u_iface, handle, pszContentFolder ? lin_pszContentFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemContent(_this->u_iface, handle, pszContentFolder ? u_pszContentFolder : NULL); + steamclient_free_path( u_pszContentFolder ); return _ret; } bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemPreview(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -3922,10 +3922,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_AddItemKeyValueTag(st bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_AddItemPreviewFile(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile, EItemPreviewType type) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_AddItemPreviewFile(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL, type); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_AddItemPreviewFile(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL, type); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -3940,10 +3940,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_AddItemPreviewVideo(s bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_UpdateItemPreviewFile(struct w_steam_iface *_this, UGCUpdateHandle_t handle, uint32 index, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_UpdateItemPreviewFile(_this->u_iface, handle, index, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_UpdateItemPreviewFile(_this->u_iface, handle, index, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -4079,10 +4079,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_DownloadItem(struct w bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_BInitWorkshopForGameServer(struct w_steam_iface *_this, DepotId_t unWorkshopDepotID, const char *pszFolder) { bool _ret; - char lin_pszFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszFolder, lin_pszFolder, 0); + const char *u_pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? lin_pszFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? u_pszFolder : NULL); + steamclient_free_path( u_pszFolder ); return _ret; } @@ -4604,20 +4604,20 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemTags(struct w_ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemContent(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszContentFolder) { bool _ret; - char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); + const char *u_pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemContent(_this->u_iface, handle, pszContentFolder ? lin_pszContentFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemContent(_this->u_iface, handle, pszContentFolder ? u_pszContentFolder : NULL); + steamclient_free_path( u_pszContentFolder ); return _ret; } bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemPreview(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -4640,10 +4640,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_AddItemKeyValueTag(st bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_AddItemPreviewFile(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile, EItemPreviewType type) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_AddItemPreviewFile(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL, type); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_AddItemPreviewFile(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL, type); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -4658,10 +4658,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_AddItemPreviewVideo(s bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_UpdateItemPreviewFile(struct w_steam_iface *_this, UGCUpdateHandle_t handle, uint32 index, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_UpdateItemPreviewFile(_this->u_iface, handle, index, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_UpdateItemPreviewFile(_this->u_iface, handle, index, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -4797,10 +4797,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_DownloadItem(struct w bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_BInitWorkshopForGameServer(struct w_steam_iface *_this, DepotId_t unWorkshopDepotID, const char *pszFolder) { bool _ret; - char lin_pszFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszFolder, lin_pszFolder, 0); + const char *u_pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? lin_pszFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? u_pszFolder : NULL); + steamclient_free_path( u_pszFolder ); return _ret; } @@ -5387,20 +5387,20 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemTags(struct w_ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemContent(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszContentFolder) { bool _ret; - char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); + const char *u_pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemContent(_this->u_iface, handle, pszContentFolder ? lin_pszContentFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemContent(_this->u_iface, handle, pszContentFolder ? u_pszContentFolder : NULL); + steamclient_free_path( u_pszContentFolder ); return _ret; } bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemPreview(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -5431,10 +5431,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_AddItemKeyValueTag(st bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_AddItemPreviewFile(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile, EItemPreviewType type) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION012_AddItemPreviewFile(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL, type); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION012_AddItemPreviewFile(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL, type); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -5449,10 +5449,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_AddItemPreviewVideo(s bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_UpdateItemPreviewFile(struct w_steam_iface *_this, UGCUpdateHandle_t handle, uint32 index, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION012_UpdateItemPreviewFile(_this->u_iface, handle, index, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION012_UpdateItemPreviewFile(_this->u_iface, handle, index, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -5588,10 +5588,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_DownloadItem(struct w bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_BInitWorkshopForGameServer(struct w_steam_iface *_this, DepotId_t unWorkshopDepotID, const char *pszFolder) { bool _ret; - char lin_pszFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszFolder, lin_pszFolder, 0); + const char *u_pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION012_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? lin_pszFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION012_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? u_pszFolder : NULL); + steamclient_free_path( u_pszFolder ); return _ret; } @@ -6190,20 +6190,20 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION013_SetItemTags(struct w_ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION013_SetItemContent(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszContentFolder) { bool _ret; - char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); + const char *u_pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION013_SetItemContent(_this->u_iface, handle, pszContentFolder ? lin_pszContentFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION013_SetItemContent(_this->u_iface, handle, pszContentFolder ? u_pszContentFolder : NULL); + steamclient_free_path( u_pszContentFolder ); return _ret; } bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION013_SetItemPreview(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION013_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION013_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -6242,10 +6242,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION013_AddItemKeyValueTag(st bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION013_AddItemPreviewFile(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile, EItemPreviewType type) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION013_AddItemPreviewFile(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL, type); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION013_AddItemPreviewFile(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL, type); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -6260,10 +6260,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION013_AddItemPreviewVideo(s bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION013_UpdateItemPreviewFile(struct w_steam_iface *_this, UGCUpdateHandle_t handle, uint32 index, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION013_UpdateItemPreviewFile(_this->u_iface, handle, index, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION013_UpdateItemPreviewFile(_this->u_iface, handle, index, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -6399,10 +6399,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION013_DownloadItem(struct w bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION013_BInitWorkshopForGameServer(struct w_steam_iface *_this, DepotId_t unWorkshopDepotID, const char *pszFolder) { bool _ret; - char lin_pszFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszFolder, lin_pszFolder, 0); + const char *u_pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION013_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? lin_pszFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION013_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? u_pszFolder : NULL); + steamclient_free_path( u_pszFolder ); return _ret; } @@ -7012,20 +7012,20 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION014_SetItemTags(struct w_ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION014_SetItemContent(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszContentFolder) { bool _ret; - char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); + const char *u_pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION014_SetItemContent(_this->u_iface, handle, pszContentFolder ? lin_pszContentFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION014_SetItemContent(_this->u_iface, handle, pszContentFolder ? u_pszContentFolder : NULL); + steamclient_free_path( u_pszContentFolder ); return _ret; } bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION014_SetItemPreview(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION014_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION014_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -7064,10 +7064,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION014_AddItemKeyValueTag(st bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION014_AddItemPreviewFile(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile, EItemPreviewType type) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION014_AddItemPreviewFile(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL, type); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION014_AddItemPreviewFile(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL, type); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -7082,10 +7082,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION014_AddItemPreviewVideo(s bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION014_UpdateItemPreviewFile(struct w_steam_iface *_this, UGCUpdateHandle_t handle, uint32 index, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION014_UpdateItemPreviewFile(_this->u_iface, handle, index, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION014_UpdateItemPreviewFile(_this->u_iface, handle, index, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -7221,10 +7221,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION014_DownloadItem(struct w bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION014_BInitWorkshopForGameServer(struct w_steam_iface *_this, DepotId_t unWorkshopDepotID, const char *pszFolder) { bool _ret; - char lin_pszFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszFolder, lin_pszFolder, 0); + const char *u_pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION014_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? lin_pszFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION014_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? u_pszFolder : NULL); + steamclient_free_path( u_pszFolder ); return _ret; } @@ -7864,20 +7864,20 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION015_SetItemTags(struct w_ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION015_SetItemContent(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszContentFolder) { bool _ret; - char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); + const char *u_pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION015_SetItemContent(_this->u_iface, handle, pszContentFolder ? lin_pszContentFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION015_SetItemContent(_this->u_iface, handle, pszContentFolder ? u_pszContentFolder : NULL); + steamclient_free_path( u_pszContentFolder ); return _ret; } bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION015_SetItemPreview(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION015_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION015_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -7916,10 +7916,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION015_AddItemKeyValueTag(st bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION015_AddItemPreviewFile(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile, EItemPreviewType type) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION015_AddItemPreviewFile(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL, type); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION015_AddItemPreviewFile(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL, type); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -7934,10 +7934,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION015_AddItemPreviewVideo(s bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION015_UpdateItemPreviewFile(struct w_steam_iface *_this, UGCUpdateHandle_t handle, uint32 index, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION015_UpdateItemPreviewFile(_this->u_iface, handle, index, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION015_UpdateItemPreviewFile(_this->u_iface, handle, index, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -8073,10 +8073,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION015_DownloadItem(struct w bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION015_BInitWorkshopForGameServer(struct w_steam_iface *_this, DepotId_t unWorkshopDepotID, const char *pszFolder) { bool _ret; - char lin_pszFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszFolder, lin_pszFolder, 0); + const char *u_pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION015_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? lin_pszFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION015_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? u_pszFolder : NULL); + steamclient_free_path( u_pszFolder ); return _ret; } @@ -8755,20 +8755,20 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION016_SetItemTags(struct w_ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION016_SetItemContent(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszContentFolder) { bool _ret; - char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); + const char *u_pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION016_SetItemContent(_this->u_iface, handle, pszContentFolder ? lin_pszContentFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION016_SetItemContent(_this->u_iface, handle, pszContentFolder ? u_pszContentFolder : NULL); + steamclient_free_path( u_pszContentFolder ); return _ret; } bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION016_SetItemPreview(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION016_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION016_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -8807,10 +8807,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION016_AddItemKeyValueTag(st bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION016_AddItemPreviewFile(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile, EItemPreviewType type) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION016_AddItemPreviewFile(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL, type); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION016_AddItemPreviewFile(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL, type); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -8825,10 +8825,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION016_AddItemPreviewVideo(s bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION016_UpdateItemPreviewFile(struct w_steam_iface *_this, UGCUpdateHandle_t handle, uint32 index, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION016_UpdateItemPreviewFile(_this->u_iface, handle, index, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION016_UpdateItemPreviewFile(_this->u_iface, handle, index, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -8964,10 +8964,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION016_DownloadItem(struct w bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION016_BInitWorkshopForGameServer(struct w_steam_iface *_this, DepotId_t unWorkshopDepotID, const char *pszFolder) { bool _ret; - char lin_pszFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszFolder, lin_pszFolder, 0); + const char *u_pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION016_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? lin_pszFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION016_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? u_pszFolder : NULL); + steamclient_free_path( u_pszFolder ); return _ret; } @@ -9659,20 +9659,20 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION017_SetItemTags(struct w_ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION017_SetItemContent(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszContentFolder) { bool _ret; - char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); + const char *u_pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION017_SetItemContent(_this->u_iface, handle, pszContentFolder ? lin_pszContentFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION017_SetItemContent(_this->u_iface, handle, pszContentFolder ? u_pszContentFolder : NULL); + steamclient_free_path( u_pszContentFolder ); return _ret; } bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION017_SetItemPreview(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION017_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION017_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -9711,10 +9711,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION017_AddItemKeyValueTag(st bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION017_AddItemPreviewFile(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile, EItemPreviewType type) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION017_AddItemPreviewFile(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL, type); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION017_AddItemPreviewFile(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL, type); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -9729,10 +9729,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION017_AddItemPreviewVideo(s bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION017_UpdateItemPreviewFile(struct w_steam_iface *_this, UGCUpdateHandle_t handle, uint32 index, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION017_UpdateItemPreviewFile(_this->u_iface, handle, index, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION017_UpdateItemPreviewFile(_this->u_iface, handle, index, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -9884,10 +9884,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION017_DownloadItem(struct w bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION017_BInitWorkshopForGameServer(struct w_steam_iface *_this, DepotId_t unWorkshopDepotID, const char *pszFolder) { bool _ret; - char lin_pszFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszFolder, lin_pszFolder, 0); + const char *u_pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION017_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? lin_pszFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION017_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? u_pszFolder : NULL); + steamclient_free_path( u_pszFolder ); return _ret; } @@ -10583,20 +10583,20 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION018_SetItemTags(struct w_ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION018_SetItemContent(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszContentFolder) { bool _ret; - char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); + const char *u_pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION018_SetItemContent(_this->u_iface, handle, pszContentFolder ? lin_pszContentFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION018_SetItemContent(_this->u_iface, handle, pszContentFolder ? u_pszContentFolder : NULL); + steamclient_free_path( u_pszContentFolder ); return _ret; } bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION018_SetItemPreview(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION018_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION018_SetItemPreview(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -10635,10 +10635,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION018_AddItemKeyValueTag(st bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION018_AddItemPreviewFile(struct w_steam_iface *_this, UGCUpdateHandle_t handle, const char *pszPreviewFile, EItemPreviewType type) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION018_AddItemPreviewFile(_this->u_iface, handle, pszPreviewFile ? lin_pszPreviewFile : NULL, type); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION018_AddItemPreviewFile(_this->u_iface, handle, pszPreviewFile ? u_pszPreviewFile : NULL, type); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -10653,10 +10653,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION018_AddItemPreviewVideo(s bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION018_UpdateItemPreviewFile(struct w_steam_iface *_this, UGCUpdateHandle_t handle, uint32 index, const char *pszPreviewFile) { bool _ret; - char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); + const char *u_pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION018_UpdateItemPreviewFile(_this->u_iface, handle, index, pszPreviewFile ? lin_pszPreviewFile : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION018_UpdateItemPreviewFile(_this->u_iface, handle, index, pszPreviewFile ? u_pszPreviewFile : NULL); + steamclient_free_path( u_pszPreviewFile ); return _ret; } @@ -10808,10 +10808,10 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION018_DownloadItem(struct w bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION018_BInitWorkshopForGameServer(struct w_steam_iface *_this, DepotId_t unWorkshopDepotID, const char *pszFolder) { bool _ret; - char lin_pszFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszFolder, lin_pszFolder, 0); + const char *u_pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION018_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? lin_pszFolder : NULL); + _ret = cppISteamUGC_STEAMUGC_INTERFACE_VERSION018_BInitWorkshopForGameServer(_this->u_iface, unWorkshopDepotID, pszFolder ? u_pszFolder : NULL); + steamclient_free_path( u_pszFolder ); return _ret; } diff --git a/lsteamclient/winISteamUtils.c b/lsteamclient/winISteamUtils.c index a463104c..fe5ee646 100644 --- a/lsteamclient/winISteamUtils.c +++ b/lsteamclient/winISteamUtils.c @@ -582,10 +582,10 @@ bool __thiscall winISteamUtils_SteamUtils005_BOverlayNeedsPresent(struct w_steam SteamAPICall_t __thiscall winISteamUtils_SteamUtils005_CheckFileSignature(struct w_steam_iface *_this, const char *szFileName) { SteamAPICall_t _ret; - char lin_szFileName[PATH_MAX]; - steamclient_dos_path_to_unix_path(szFileName, lin_szFileName, 0); + const char *u_szFileName = steamclient_dos_to_unix_path( szFileName, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUtils_SteamUtils005_CheckFileSignature(_this->u_iface, szFileName ? lin_szFileName : NULL); + _ret = cppISteamUtils_SteamUtils005_CheckFileSignature(_this->u_iface, szFileName ? u_szFileName : NULL); + steamclient_free_path( u_szFileName ); return _ret; } @@ -845,10 +845,10 @@ bool __thiscall winISteamUtils_SteamUtils006_BOverlayNeedsPresent(struct w_steam SteamAPICall_t __thiscall winISteamUtils_SteamUtils006_CheckFileSignature(struct w_steam_iface *_this, const char *szFileName) { SteamAPICall_t _ret; - char lin_szFileName[PATH_MAX]; - steamclient_dos_path_to_unix_path(szFileName, lin_szFileName, 0); + const char *u_szFileName = steamclient_dos_to_unix_path( szFileName, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUtils_SteamUtils006_CheckFileSignature(_this->u_iface, szFileName ? lin_szFileName : NULL); + _ret = cppISteamUtils_SteamUtils006_CheckFileSignature(_this->u_iface, szFileName ? u_szFileName : NULL); + steamclient_free_path( u_szFileName ); return _ret; } @@ -1127,10 +1127,10 @@ bool __thiscall winISteamUtils_SteamUtils007_BOverlayNeedsPresent(struct w_steam SteamAPICall_t __thiscall winISteamUtils_SteamUtils007_CheckFileSignature(struct w_steam_iface *_this, const char *szFileName) { SteamAPICall_t _ret; - char lin_szFileName[PATH_MAX]; - steamclient_dos_path_to_unix_path(szFileName, lin_szFileName, 0); + const char *u_szFileName = steamclient_dos_to_unix_path( szFileName, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUtils_SteamUtils007_CheckFileSignature(_this->u_iface, szFileName ? lin_szFileName : NULL); + _ret = cppISteamUtils_SteamUtils007_CheckFileSignature(_this->u_iface, szFileName ? u_szFileName : NULL); + steamclient_free_path( u_szFileName ); return _ret; } @@ -1418,10 +1418,10 @@ bool __thiscall winISteamUtils_SteamUtils008_BOverlayNeedsPresent(struct w_steam SteamAPICall_t __thiscall winISteamUtils_SteamUtils008_CheckFileSignature(struct w_steam_iface *_this, const char *szFileName) { SteamAPICall_t _ret; - char lin_szFileName[PATH_MAX]; - steamclient_dos_path_to_unix_path(szFileName, lin_szFileName, 0); + const char *u_szFileName = steamclient_dos_to_unix_path( szFileName, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUtils_SteamUtils008_CheckFileSignature(_this->u_iface, szFileName ? lin_szFileName : NULL); + _ret = cppISteamUtils_SteamUtils008_CheckFileSignature(_this->u_iface, szFileName ? u_szFileName : NULL); + steamclient_free_path( u_szFileName ); return _ret; } @@ -1731,10 +1731,10 @@ bool __thiscall winISteamUtils_SteamUtils009_BOverlayNeedsPresent(struct w_steam SteamAPICall_t __thiscall winISteamUtils_SteamUtils009_CheckFileSignature(struct w_steam_iface *_this, const char *szFileName) { SteamAPICall_t _ret; - char lin_szFileName[PATH_MAX]; - steamclient_dos_path_to_unix_path(szFileName, lin_szFileName, 0); + const char *u_szFileName = steamclient_dos_to_unix_path( szFileName, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUtils_SteamUtils009_CheckFileSignature(_this->u_iface, szFileName ? lin_szFileName : NULL); + _ret = cppISteamUtils_SteamUtils009_CheckFileSignature(_this->u_iface, szFileName ? u_szFileName : NULL); + steamclient_free_path( u_szFileName ); return _ret; } @@ -2100,10 +2100,10 @@ bool __thiscall winISteamUtils_SteamUtils010_BOverlayNeedsPresent(struct w_steam SteamAPICall_t __thiscall winISteamUtils_SteamUtils010_CheckFileSignature(struct w_steam_iface *_this, const char *szFileName) { SteamAPICall_t _ret; - char lin_szFileName[PATH_MAX]; - steamclient_dos_path_to_unix_path(szFileName, lin_szFileName, 0); + const char *u_szFileName = steamclient_dos_to_unix_path( szFileName, 0 ); TRACE("%p\n", _this); - _ret = cppISteamUtils_SteamUtils010_CheckFileSignature(_this->u_iface, szFileName ? lin_szFileName : NULL); + _ret = cppISteamUtils_SteamUtils010_CheckFileSignature(_this->u_iface, szFileName ? u_szFileName : NULL); + steamclient_free_path( u_szFileName ); return _ret; }