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

This commit is contained in:
Marcus Meissner 2004-09-14 00:43:19 +00:00 committed by Alexandre Julliard
parent f609b68ea5
commit 904b1fbb89
1 changed files with 10 additions and 1 deletions

View File

@ -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 );
}