Don't look at the second character of the path unless the first

character is non-NUL.
This commit is contained in:
Adam Gundy 2003-03-30 01:36:09 +00:00 committed by Alexandre Julliard
parent ea10ed7c11
commit ac89a159ac
1 changed files with 1 additions and 1 deletions

View File

@ -608,7 +608,7 @@ BOOL WineEngInit(void)
vlen = valuelen;
while(RegEnumValueA(hkey, i++, value, &vlen, NULL, &type, data,
&dlen) == ERROR_SUCCESS) {
if(((LPSTR)data)[1] == ':')
if(((LPSTR)data)[0] && ((LPSTR)data)[1] == ':')
if(wine_get_unix_file_name((LPSTR)data, unixname, sizeof(unixname)))
AddFontFileToList(unixname);