mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-04-14 13:30:13 +03:00
steamclient: Do not overwrite output buffer too early.
This commit is contained in:
parent
f01a5d2239
commit
bd1e1c3005
@ -40,12 +40,14 @@ unsigned int steamclient_unix_path_to_dos_path(bool api_result, const char *src,
|
|||||||
WCHAR *dosW;
|
WCHAR *dosW;
|
||||||
uint32 r;
|
uint32 r;
|
||||||
|
|
||||||
*dst = 0;
|
if(!src || !api_result){
|
||||||
|
*dst = 0;
|
||||||
if(!src || !api_result)
|
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
dosW = wine_get_dos_file_name(src);
|
dosW = wine_get_dos_file_name(src);
|
||||||
|
*dst = 0;
|
||||||
|
|
||||||
if(!dosW){
|
if(!dosW){
|
||||||
WARN("Unable to convert unix filename to DOS: %s\n", src);
|
WARN("Unable to convert unix filename to DOS: %s\n", src);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user