mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
msctf: Always use interlocked functions when accessing MSCTF_refCount.
This commit is contained in:
parent
9057a693d7
commit
3765e08ddc
1 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ static void ClassFactory_Destructor(ClassFactory *This)
|
|||
{
|
||||
TRACE("Destroying class factory %p\n", This);
|
||||
HeapFree(GetProcessHeap(),0,This);
|
||||
MSCTF_refCount--;
|
||||
InterlockedDecrement(&MSCTF_refCount);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI ClassFactory_QueryInterface(IClassFactory *iface, REFIID riid, LPVOID *ppvOut)
|
||||
|
@ -190,7 +190,7 @@ static HRESULT ClassFactory_Constructor(LPFNCONSTRUCTOR ctor, LPVOID *ppvOut)
|
|||
This->ctor = ctor;
|
||||
*ppvOut = This;
|
||||
TRACE("Created class factory %p\n", This);
|
||||
MSCTF_refCount++;
|
||||
InterlockedIncrement(&MSCTF_refCount);
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue