Dan Kegel : shell32: Only print " HCR_GetFolderAttributes should be called for simple PIDL's" once.

Alexandre Julliard julliard at winehq.org
Wed Mar 19 07:28:14 CDT 2008


Module: wine
Branch: master
Commit: c5b499d37a8824b953e5cee9df674ef052a53ef8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c5b499d37a8824b953e5cee9df674ef052a53ef8

Author: Dan Kegel <dank at kegel.com>
Date:   Tue Mar 18 14:34:51 2008 -0700

shell32: Only print "HCR_GetFolderAttributes should be called for simple PIDL's" once.

---

 dlls/shell32/classes.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/dlls/shell32/classes.c b/dlls/shell32/classes.c
index d17a31c..e5fab4d 100644
--- a/dlls/shell32/classes.c
+++ b/dlls/shell32/classes.c
@@ -438,7 +438,11 @@ BOOL HCR_GetFolderAttributes(LPCITEMIDLIST pidlFolder, LPDWORD pdwAttributes)
     TRACE("(pidlFolder=%p, pdwAttributes=%p)\n", pidlFolder, pdwAttributes);
        
     if (!_ILIsPidlSimple(pidlFolder)) { 
-        ERR("HCR_GetFolderAttributes should be called for simple PIDL's only!\n");    
+        static int firstHit = 1;
+        if (firstHit) {
+            ERR("HCR_GetFolderAttributes should be called for simple PIDL's only!\n");
+            firstHit = 0;
+        }
         return FALSE;
     }
     




More information about the wine-cvs mailing list