Remove unused thread handle entry from the apartment structure.

This commit is contained in:
Robert Shearman 2005-08-25 09:50:36 +00:00 committed by Alexandre Julliard
parent 876982df8f
commit bcb251d5b3
2 changed files with 0 additions and 5 deletions

View File

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

View File

@ -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) */