From 18f4d651c599d0e446e1df32389aaadb27f1153d Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 22 Jan 2002 00:54:20 +0000 Subject: [PATCH] Removed use of SET_DEBUGGING, it's broken anyway. --- dlls/shell32/pidl.c | 22 ++-------------------- dlls/shell32/shellord.c | 16 ++++------------ 2 files changed, 6 insertions(+), 32 deletions(-) diff --git a/dlls/shell32/pidl.c b/dlls/shell32/pidl.c index 871b457a5ef..48e9f79c7e0 100644 --- a/dlls/shell32/pidl.c +++ b/dlls/shell32/pidl.c @@ -29,17 +29,10 @@ DECLARE_DEBUG_CHANNEL(shell); void pdump (LPCITEMIDLIST pidl) { - BOOL bIsShellDebug; - LPITEMIDLIST pidltemp = pidl; if (!TRACE_ON(pidl)) return; - /* silence the sub-functions */ - bIsShellDebug = TRACE_ON(shell); - __WINE_SET_DEBUGGING(__WINE_DBCL_TRACE, __wine_dbch_shell, FALSE); - __WINE_SET_DEBUGGING(__WINE_DBCL_TRACE, __wine_dbch_pidl, FALSE); - if (! pidltemp) { MESSAGE ("-------- pidl=NULL (Desktop)\n"); @@ -77,21 +70,13 @@ void pdump (LPCITEMIDLIST pidl) } pcheck(pidl); } - - __WINE_SET_DEBUGGING(__WINE_DBCL_TRACE, __wine_dbch_shell, bIsShellDebug); - __WINE_SET_DEBUGGING(__WINE_DBCL_TRACE, __wine_dbch_pidl, TRUE); - } #define BYTES_PRINTED 32 BOOL pcheck (LPCITEMIDLIST pidl) -{ DWORD type, ret=TRUE; - BOOL bIsPidlDebug; - +{ + DWORD type, ret=TRUE; LPITEMIDLIST pidltemp = pidl; - bIsPidlDebug = TRACE_ON(shell); - __WINE_SET_DEBUGGING(__WINE_DBCL_TRACE, __wine_dbch_pidl, FALSE); - if (pidltemp && pidltemp->mkid.cb) { do { type = _ILGetDataPointer(pidltemp)->type; @@ -137,7 +122,6 @@ BOOL pcheck (LPCITEMIDLIST pidl) pidltemp = ILGetNext(pidltemp); } while (pidltemp->mkid.cb); } - __WINE_SET_DEBUGGING(__WINE_DBCL_TRACE, __wine_dbch_pidl, bIsPidlDebug); return ret; } @@ -660,8 +644,6 @@ DWORD WINAPI ILGetSize(LPITEMIDLIST pidl) LPITEMIDLIST WINAPI ILGetNext(LPITEMIDLIST pidl) { WORD len; - - TRACE("(pidl=%p)\n",pidl); if(pidl) { diff --git a/dlls/shell32/shellord.c b/dlls/shell32/shellord.c index d9eb50084e8..7248f69d7c1 100644 --- a/dlls/shell32/shellord.c +++ b/dlls/shell32/shellord.c @@ -1470,20 +1470,12 @@ HRESULT WINAPI CIDLData_CreateFromIDArray( { INT i; HWND hwnd = 0; /*FIXME: who should be hwnd of owner? set to desktop */ - BOOL boldpidl; - if (TRACE_ON(shell)) { - TRACE("(%p, %ld, %p, %p)\n", pidlFolder, cpidlFiles, - lppidlFiles, ppdataObject); - boldpidl = TRACE_ON(pidl); - __WINE_SET_DEBUGGING(__WINE_DBCL_TRACE, __wine_dbch_shell, FALSE); - __WINE_SET_DEBUGGING(__WINE_DBCL_TRACE, __wine_dbch_pidl, TRUE); + TRACE("(%p, %ld, %p, %p)\n", pidlFolder, cpidlFiles, lppidlFiles, ppdataObject); + if (TRACE_ON(pidl)) + { pdump (pidlFolder); - for (i=0; i