[OS/2] Bug 413530: fix icon display of files without extensions in listings, fix=Rich Walsh, r=me

git-svn-id: svn://10.0.0.236/trunk@244250 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mozilla%weilbacher.org
2008-01-28 22:30:45 +00:00
parent bf88c99c4d
commit e554c5fd80

View File

@@ -455,8 +455,10 @@ static HPOINTER GetIcon(nsCString& file, PRBool fExists,
HPOINTER hRtn = 0;
*fWpsIcon = PR_FALSE;
if (file.IsEmpty())
return 0;
if (file.IsEmpty()) {
// append something so that we get at least the generic icon
file.Append("pmwrlw");
}
// if RWS is enabled, try to get the icon from the WPS
if (sUseRws) {