Commit 3765e08d authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

msctf: Always use interlocked functions when accessing MSCTF_refCount.

parent 9057a693
...@@ -110,7 +110,7 @@ static void ClassFactory_Destructor(ClassFactory *This) ...@@ -110,7 +110,7 @@ static void ClassFactory_Destructor(ClassFactory *This)
{ {
TRACE("Destroying class factory %p\n", This); TRACE("Destroying class factory %p\n", This);
HeapFree(GetProcessHeap(),0,This); HeapFree(GetProcessHeap(),0,This);
MSCTF_refCount--; InterlockedDecrement(&MSCTF_refCount);
} }
static HRESULT WINAPI ClassFactory_QueryInterface(IClassFactory *iface, REFIID riid, LPVOID *ppvOut) static HRESULT WINAPI ClassFactory_QueryInterface(IClassFactory *iface, REFIID riid, LPVOID *ppvOut)
...@@ -190,7 +190,7 @@ static HRESULT ClassFactory_Constructor(LPFNCONSTRUCTOR ctor, LPVOID *ppvOut) ...@@ -190,7 +190,7 @@ static HRESULT ClassFactory_Constructor(LPFNCONSTRUCTOR ctor, LPVOID *ppvOut)
This->ctor = ctor; This->ctor = ctor;
*ppvOut = This; *ppvOut = This;
TRACE("Created class factory %p\n", This); TRACE("Created class factory %p\n", This);
MSCTF_refCount++; InterlockedIncrement(&MSCTF_refCount);
return S_OK; return S_OK;
} }
......
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