Re: [2/3] ole32: Implement CoGetContextToken.
23 Jun
2009
23 Jun
'09
11:43 a.m.
2009/6/23 Hans Leidekker <hans(a)codeweavers.com>:
@@ -228,6 +232,7 @@ static void COM_TlsDestroy(void) if (info->errorinfo) IErrorInfo_Release(info->errorinfo); if (info->state) IUnknown_Release(info->state); if (info->spy) IUnknown_Release(info->spy); + if (info->context_token) IUnknown_Release((IUnknown *)info->context_token); HeapFree(GetProcessHeap(), 0, info); NtCurrentTeb()->ReservedForOle = NULL; }
Why not change the type of info->context_token to be IObjContext* or IUnknown* instead of ULONG_PTR? It shouldn't change the memory layout of the oletls structure and it will eliminate the need of these types of casts. -- Rob Shearman
6017
Age (days ago)
6017
Last active (days ago)
0 comments
1 participants
participants (1)
-
Rob Shearman