Commit bcb251d5 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard

Remove unused thread handle entry from the apartment structure.

parent 876982df
...@@ -224,9 +224,6 @@ static APARTMENT *apartment_construct(DWORD model) ...@@ -224,9 +224,6 @@ static APARTMENT *apartment_construct(DWORD model)
apt = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*apt)); apt = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(*apt));
apt->tid = GetCurrentThreadId(); apt->tid = GetCurrentThreadId();
DuplicateHandle(GetCurrentProcess(), GetCurrentThread(),
GetCurrentProcess(), &apt->thread,
THREAD_ALL_ACCESS, FALSE, 0);
list_init(&apt->proxies); list_init(&apt->proxies);
list_init(&apt->stubmgrs); list_init(&apt->stubmgrs);
...@@ -360,7 +357,6 @@ DWORD apartment_release(struct apartment *apt) ...@@ -360,7 +357,6 @@ DWORD apartment_release(struct apartment *apt)
DEBUG_CLEAR_CRITSEC_NAME(&apt->cs); DEBUG_CLEAR_CRITSEC_NAME(&apt->cs);
DeleteCriticalSection(&apt->cs); DeleteCriticalSection(&apt->cs);
CloseHandle(apt->thread);
HeapFree(GetProcessHeap(), 0, apt); HeapFree(GetProcessHeap(), 0, apt);
} }
......
...@@ -127,7 +127,6 @@ struct apartment ...@@ -127,7 +127,6 @@ struct apartment
LONG refs; /* refcount of the apartment (LOCK) */ LONG refs; /* refcount of the apartment (LOCK) */
DWORD model; /* threading model (RO) */ DWORD model; /* threading model (RO) */
DWORD tid; /* thread id (RO) */ DWORD tid; /* thread id (RO) */
HANDLE thread; /* thread handle (RO) */
OXID oxid; /* object exporter ID (RO) */ OXID oxid; /* object exporter ID (RO) */
LONG ipidc; /* interface pointer ID counter, starts at 1 (LOCK) */ LONG ipidc; /* interface pointer ID counter, starts at 1 (LOCK) */
HWND win; /* message window (RO) */ HWND win; /* message window (RO) */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment