Commit 4064e74f authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

Use Interlocked* functions in AddRef and Release.

parent eeca59ff
...@@ -77,12 +77,12 @@ HRESULT WINAPI QueryInterface(_IDummyStream *This,REFIID riid, LPVOID *ppvObj) ...@@ -77,12 +77,12 @@ HRESULT WINAPI QueryInterface(_IDummyStream *This,REFIID riid, LPVOID *ppvObj)
static ULONG WINAPI AddRef(_IDummyStream *This) static ULONG WINAPI AddRef(_IDummyStream *This)
{ {
return ++This->ref; return InterlockedIncrement(&This->ref);
} }
static ULONG WINAPI Release(_IDummyStream *This) static ULONG WINAPI Release(_IDummyStream *This)
{ {
return --This->ref; return InterlockedDecrement(&This->ref);
} }
static HRESULT WINAPI Read(_IDummyStream* This, LPVOID lpMem, ULONG ulSize, static HRESULT WINAPI Read(_IDummyStream* This, LPVOID lpMem, ULONG ulSize,
......
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