Commit ac89a159 authored by Adam Gundy's avatar Adam Gundy Committed by Alexandre Julliard

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

character is non-NUL.
parent ea10ed7c
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment