mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-21 21:26:03 +01:00
lsteamclient: Strip extra /'s from file:/// in steamclient_dos_to_unix_path().
CW-Bug-Id: #23664
This commit is contained in:
parent
6e7e17776e
commit
4e289629ce
1 changed files with 1 additions and 0 deletions
|
|
@ -492,6 +492,7 @@ char *steamclient_dos_to_unix_path( const char *src, int is_url )
|
||||||
char *unix_path;
|
char *unix_path;
|
||||||
uint32_t r;
|
uint32_t r;
|
||||||
|
|
||||||
|
if (is_url) while (*src == '/') ++src;
|
||||||
r = ntdll_umbstowcs( src, -1, srcW + 4, PATH_MAX - 4 );
|
r = ntdll_umbstowcs( src, -1, srcW + 4, PATH_MAX - 4 );
|
||||||
if (r == 0) unix_path = NULL;
|
if (r == 0) unix_path = NULL;
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue