From c5b499d37a8824b953e5cee9df674ef052a53ef8 Mon Sep 17 00:00:00 2001 From: Dan Kegel Date: Tue, 18 Mar 2008 14:34:51 -0700 Subject: [PATCH] shell32: Only print "HCR_GetFolderAttributes should be called for simple PIDL's" once. --- dlls/shell32/classes.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dlls/shell32/classes.c b/dlls/shell32/classes.c index d17a31cb989..e5fab4d8f2d 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; }