Unquote the icon file path if it's quoted.

This commit is contained in:
Huw Davies 2005-06-15 18:07:43 +00:00 committed by Alexandre Julliard
parent f85535c6f4
commit 47db6bc567
1 changed files with 2 additions and 0 deletions

View File

@ -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;