Remove unused thread handle entry from the apartment structure.
This commit is contained in:
parent
876982df8f
commit
bcb251d5b3
|
@ -224,9 +224,6 @@ static APARTMENT *apartment_construct(DWORD model)
|
|||
|
||||
apt = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*apt));
|
||||
apt->tid = GetCurrentThreadId();
|
||||
DuplicateHandle(GetCurrentProcess(), GetCurrentThread(),
|
||||
GetCurrentProcess(), &apt->thread,
|
||||
THREAD_ALL_ACCESS, FALSE, 0);
|
||||
|
||||
list_init(&apt->proxies);
|
||||
list_init(&apt->stubmgrs);
|
||||
|
@ -360,7 +357,6 @@ DWORD apartment_release(struct apartment *apt)
|
|||
|
||||
DEBUG_CLEAR_CRITSEC_NAME(&apt->cs);
|
||||
DeleteCriticalSection(&apt->cs);
|
||||
CloseHandle(apt->thread);
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, apt);
|
||||
}
|
||||
|
|
|
@ -127,7 +127,6 @@ struct apartment
|
|||
LONG refs; /* refcount of the apartment (LOCK) */
|
||||
DWORD model; /* threading model (RO) */
|
||||
DWORD tid; /* thread id (RO) */
|
||||
HANDLE thread; /* thread handle (RO) */
|
||||
OXID oxid; /* object exporter ID (RO) */
|
||||
LONG ipidc; /* interface pointer ID counter, starts at 1 (LOCK) */
|
||||
HWND win; /* message window (RO) */
|
||||
|
|
Loading…
Reference in New Issue