Don't look at the second character of the path unless the first
character is non-NUL.
This commit is contained in:
parent
ea10ed7c11
commit
ac89a159ac
|
@ -608,7 +608,7 @@ BOOL WineEngInit(void)
|
||||||
vlen = valuelen;
|
vlen = valuelen;
|
||||||
while(RegEnumValueA(hkey, i++, value, &vlen, NULL, &type, data,
|
while(RegEnumValueA(hkey, i++, value, &vlen, NULL, &type, data,
|
||||||
&dlen) == ERROR_SUCCESS) {
|
&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)))
|
if(wine_get_unix_file_name((LPSTR)data, unixname, sizeof(unixname)))
|
||||||
AddFontFileToList(unixname);
|
AddFontFileToList(unixname);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue