Commit 904b1fbb authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

If we do not have an IconsDir, use the temp directory.

parent f609b68e
......@@ -455,7 +455,16 @@ static char *extract_icon( const char *path, int index)
HeapFree(GetProcessHeap(), 0, iconsdir);
iconsdir=s;
}
}
} else {
char path[MAX_PATH];
if (GetTempPath(sizeof(path),path)) {
s=get_unix_file_name(path);
if (s) {
iconsdir=s;
}
}
}
RegCloseKey( hkey );
}
if (iconsdir==NULL || *iconsdir=='\0')
......
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