mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-28 15:45:50 +03:00
steamclient: Fix possible crash.
Fix a regression caused by a8968fe
.
https://github.com/ValveSoftware/Proton/issues/2131
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
This commit is contained in:
parent
1b0173de22
commit
4b9b8547e6
@ -40,6 +40,9 @@ unsigned int steamclient_unix_path_to_dos_path(bool api_result, const char *src,
|
|||||||
WCHAR *dosW;
|
WCHAR *dosW;
|
||||||
uint32 r;
|
uint32 r;
|
||||||
|
|
||||||
|
if(!dst || !dst_bytes)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if(!src || !api_result){
|
if(!src || !api_result){
|
||||||
*dst = 0;
|
*dst = 0;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user