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

This commit is contained in:
Dan Kegel 2008-03-18 14:34:51 -07:00 committed by Alexandre Julliard
parent 304b415284
commit c5b499d37a
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}