From 4e289629ced341255c281baebd61fcf5a69271d3 Mon Sep 17 00:00:00 2001 From: Paul Gofman Date: Wed, 10 Apr 2024 16:33:17 -0600 Subject: [PATCH] lsteamclient: Strip extra /'s from file:/// in steamclient_dos_to_unix_path(). CW-Bug-Id: #23664 --- lsteamclient/unixlib.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lsteamclient/unixlib.cpp b/lsteamclient/unixlib.cpp index bef732bf..646f119f 100644 --- a/lsteamclient/unixlib.cpp +++ b/lsteamclient/unixlib.cpp @@ -492,6 +492,7 @@ char *steamclient_dos_to_unix_path( const char *src, int is_url ) char *unix_path; uint32_t r; + if (is_url) while (*src == '/') ++src; r = ntdll_umbstowcs( src, -1, srcW + 4, PATH_MAX - 4 ); if (r == 0) unix_path = NULL; else