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:
Zhiyi Zhang 2019-01-02 21:31:53 +08:00 committed by Andrew Eikum
parent 1b0173de22
commit 4b9b8547e6

View File

@ -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;