From 6e7e17776ec7bd9ec2f3c314c1fc21768d563f2b Mon Sep 17 00:00:00 2001 From: Paul Gofman Date: Wed, 10 Apr 2024 15:11:59 -0600 Subject: [PATCH] lsteamclient: Return empty string from steamclient_dos_to_unix_path() when conversion failed. CW-Bug-Id: #23664 --- lsteamclient/unixlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsteamclient/unixlib.cpp b/lsteamclient/unixlib.cpp index 098c966e..bef732bf 100644 --- a/lsteamclient/unixlib.cpp +++ b/lsteamclient/unixlib.cpp @@ -503,7 +503,7 @@ char *steamclient_dos_to_unix_path( const char *src, int is_url ) if (!unix_path) { WARN( "Unable to convert DOS filename to unix: %s\n", src ); - return NULL; + goto done; } lstrcpynA( dst, unix_path, PATH_MAX );