mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 01:55:39 +00:00
[MSCTF] Sync with Wine Staging 4.18. CORE-16441
This commit is contained in:
parent
4c4918afe9
commit
ac50127e48
11 changed files with 155 additions and 61 deletions
|
@ -18,8 +18,6 @@
|
|||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#define COBJMACROS
|
||||
|
@ -33,8 +31,6 @@
|
|||
#include "winerror.h"
|
||||
#include "objbase.h"
|
||||
|
||||
#include "wine/unicode.h"
|
||||
|
||||
#include "msctf.h"
|
||||
#include "msctf_internal.h"
|
||||
|
||||
|
@ -81,11 +77,15 @@ static inline EnumTfContext *impl_from_IEnumTfContexts(IEnumTfContexts *iface)
|
|||
|
||||
static void DocumentMgr_Destructor(DocumentMgr *This)
|
||||
{
|
||||
ITfThreadMgr *tm;
|
||||
ITfThreadMgr *tm = NULL;
|
||||
TRACE("destroying %p\n", This);
|
||||
|
||||
TF_GetThreadMgr(&tm);
|
||||
ThreadMgr_OnDocumentMgrDestruction(tm, &This->ITfDocumentMgr_iface);
|
||||
if (tm)
|
||||
{
|
||||
ThreadMgr_OnDocumentMgrDestruction(tm, &This->ITfDocumentMgr_iface);
|
||||
ITfThreadMgr_Release(tm);
|
||||
}
|
||||
|
||||
if (This->contextStack[0])
|
||||
ITfContext_Release(This->contextStack[0]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue