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

View File

@ -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')