Skip to content
Snippets Groups Projects
Commit ac89a159 authored by Adam Gundy's avatar Adam Gundy Committed by Alexandre Julliard
Browse files

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

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