mirror of
https://github.com/suyu-emu/Yucom.git
synced 2026-09-21 13:22:43 -07: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:
committed by
Andrew Eikum
parent
1b0173de22
commit
4b9b8547e6
@@ -40,6 +40,9 @@ unsigned int steamclient_unix_path_to_dos_path(bool api_result, const char *src,
|
||||
WCHAR *dosW;
|
||||
uint32 r;
|
||||
|
||||
if(!dst || !dst_bytes)
|
||||
return 0;
|
||||
|
||||
if(!src || !api_result){
|
||||
*dst = 0;
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user