From 03afe55ab35727a5c6cb00681fa5998cfbbedef7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 22 Dec 2014 15:27:43 +0000 Subject: additional log data git-svn-id: http://svn.miranda-ng.org/main/trunk@11583 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_core/threads.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mir_core/threads.cpp b/src/mir_core/threads.cpp index 58f7086676..b1d6a23ebd 100644 --- a/src/mir_core/threads.cpp +++ b/src/mir_core/threads.cpp @@ -88,7 +88,7 @@ struct THREAD_WAIT_ENTRY DWORD dwThreadId; // valid if hThread isn't signalled HANDLE hThread; HINSTANCE hOwner; - void *pObject; + void *pObject, *pEntryPoint; }; static LIST threads(10, NumericKeySortT); @@ -230,7 +230,7 @@ static void CALLBACK KillAllThreads(HWND, UINT, UINT_PTR, DWORD) THREAD_WAIT_ENTRY *p = threads[j]; char szModuleName[MAX_PATH]; GetModuleFileNameA(p->hOwner, szModuleName, sizeof(szModuleName)); - Netlib_Logf(0, "Killing thread %s:%p", szModuleName, p->dwThreadId); + Netlib_Logf(0, "Killing thread %s:%p (%p)", szModuleName, p->dwThreadId, p->pEntryPoint); TerminateThread(p->hThread, 9999); CloseHandle(p->hThread); mir_free(p); @@ -295,6 +295,7 @@ MIR_CORE_DLL(INT_PTR) Thread_Push(HINSTANCE hInst, void* pOwner) p->hOwner = hInst; else p->hOwner = GetInstByAddress((hInst != NULL) ? (PVOID)hInst : GetCurrentThreadEntryPoint()); + p->pEntryPoint = hInst; threads.insert(p); -- cgit v1.2.3