If we do not have an IconsDir, use the temp directory.
This commit is contained in:
parent
f609b68ea5
commit
904b1fbb89
|
@ -455,6 +455,15 @@ 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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue