From e554c5fd805d94b83c1150e065104fbf769c36f6 Mon Sep 17 00:00:00 2001 From: "mozilla%weilbacher.org" Date: Mon, 28 Jan 2008 22:30:45 +0000 Subject: [PATCH] [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 --- mozilla/modules/libpr0n/decoders/icon/os2/nsIconChannel.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/modules/libpr0n/decoders/icon/os2/nsIconChannel.cpp b/mozilla/modules/libpr0n/decoders/icon/os2/nsIconChannel.cpp index baf469840ba..63533c15f46 100644 --- a/mozilla/modules/libpr0n/decoders/icon/os2/nsIconChannel.cpp +++ b/mozilla/modules/libpr0n/decoders/icon/os2/nsIconChannel.cpp @@ -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) {