[PATCH] removed superflous check

Marcus Meissner marcus at jet.franken.de
Fri Feb 15 14:17:59 CST 2008


type is DWORD, so >=0 checking is useless.

Ciao, Marcus
---
 dlls/shell32/pidl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/shell32/pidl.c b/dlls/shell32/pidl.c
index 18bfebf..fa534c5 100644
--- a/dlls/shell32/pidl.c
+++ b/dlls/shell32/pidl.c
@@ -109,7 +109,7 @@ BOOL WINAPI ILGetDisplayNameExW(LPSHELLFOLDER psf, LPCITEMIDLIST pidl, LPWSTR pa
             return FALSE;
     }
 
-    if (type >= 0 && type <= 2)
+    if (type <= 2)
     {
         switch (type)
         {
-- 
1.5.2.4



More information about the wine-patches mailing list