[0.4.12][EXPLORER] fix traces PR#1667

cherry picked from commit 0.4.13-dev-480-g
7796df375a
This commit is contained in:
Andreas Maier 2019-06-18 21:00:43 +02:00 committed by Joachim Henze
parent e9fb7dcee2
commit c6aa07f7ce

View file

@ -444,14 +444,14 @@ UINT WINAPI CIconWatcher::WatcherThread(_In_opt_ LPVOID lpParam)
{ {
// We've been kicked, we have updates to our list (or we're exiting the thread) // We've been kicked, we have updates to our list (or we're exiting the thread)
if (This->m_Loop) if (This->m_Loop)
TRACE("Updating watched icon list"); TRACE("Updating watched icon list\n");
} }
else if ((Status >= WAIT_OBJECT_0 + 1) && (Status < Size)) else if ((Status >= WAIT_OBJECT_0 + 1) && (Status < Size))
{ {
IconWatcherData *Icon; IconWatcherData *Icon;
Icon = This->GetListEntry(NULL, WatchList[Status], false); Icon = This->GetListEntry(NULL, WatchList[Status], false);
TRACE("Pid %lu owns a notification icon and has stopped without deleting it. We'll cleanup on its behalf", Icon->ProcessId); TRACE("Pid %lu owns a notification icon and has stopped without deleting it. We'll cleanup on its behalf\n", Icon->ProcessId);
TRAYNOTIFYDATAW tnid = {0}; TRAYNOTIFYDATAW tnid = {0};
tnid.dwSignature = NI_NOTIFY_SIG; tnid.dwSignature = NI_NOTIFY_SIG;
@ -832,7 +832,7 @@ BOOL CNotifyToolbar::UpdateButton(_In_ CONST NOTIFYICONDATA *iconData)
InternalIconData * notifyItem; InternalIconData * notifyItem;
TBBUTTONINFO tbbi = { 0 }; TBBUTTONINFO tbbi = { 0 };
TRACE("Updating icon %d from hWnd %08x flags%s%s state%s%s", TRACE("Updating icon %d from hWnd %08x flags%s%s state%s%s\n",
iconData->uID, iconData->hWnd, iconData->uID, iconData->hWnd,
(iconData->uFlags & NIF_ICON) ? " ICON" : "", (iconData->uFlags & NIF_ICON) ? " ICON" : "",
(iconData->uFlags & NIF_STATE) ? " STATE" : "", (iconData->uFlags & NIF_STATE) ? " STATE" : "",
@ -842,7 +842,7 @@ BOOL CNotifyToolbar::UpdateButton(_In_ CONST NOTIFYICONDATA *iconData)
int index = FindItem(iconData->hWnd, iconData->uID, &notifyItem); int index = FindItem(iconData->hWnd, iconData->uID, &notifyItem);
if (index < 0) if (index < 0)
{ {
WARN("Icon %d from hWnd %08x DOES NOT EXIST!", iconData->uID, iconData->hWnd); WARN("Icon %d from hWnd %08x DOES NOT EXIST!\n", iconData->uID, iconData->hWnd);
return AddButton(iconData); return AddButton(iconData);
} }
@ -941,7 +941,7 @@ BOOL CNotifyToolbar::RemoveButton(_In_ CONST NOTIFYICONDATA *iconData)
int index = FindItem(iconData->hWnd, iconData->uID, &notifyItem); int index = FindItem(iconData->hWnd, iconData->uID, &notifyItem);
if (index < 0) if (index < 0)
{ {
TRACE("Icon %d from hWnd %08x ALREADY MISSING!", iconData->uID, iconData->hWnd); TRACE("Icon %d from hWnd %08x ALREADY MISSING!\n", iconData->uID, iconData->hWnd);
return FALSE; return FALSE;
} }