Unquote the icon file path if it's quoted.
This commit is contained in:
parent
f85535c6f4
commit
47db6bc567
|
@ -178,6 +178,7 @@ static BOOL HCR_RegGetDefaultIconW(HKEY hkey, LPWSTR szDest, DWORD len, LPDWORD
|
||||||
else
|
else
|
||||||
*dwNr=0; /* sometimes the icon number is missing */
|
*dwNr=0; /* sometimes the icon number is missing */
|
||||||
ParseFieldW (szDest, 1, szDest, len);
|
ParseFieldW (szDest, 1, szDest, len);
|
||||||
|
PathUnquoteSpacesW(szDest);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
@ -201,6 +202,7 @@ static BOOL HCR_RegGetDefaultIconA(HKEY hkey, LPSTR szDest, DWORD len, LPDWORD d
|
||||||
else
|
else
|
||||||
*dwNr=0; /* sometimes the icon number is missing */
|
*dwNr=0; /* sometimes the icon number is missing */
|
||||||
ParseFieldA (szDest, 1, szDest, len);
|
ParseFieldA (szDest, 1, szDest, len);
|
||||||
|
PathUnquoteSpacesA(szDest);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in New Issue