mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-15 07:29:17 +01:00
[util] Fix return value of AddRef
We're supposed to return the new ref count, not the old one.
This commit is contained in:
parent
1e0fe36cae
commit
7d91ff06a3
@ -33,7 +33,7 @@ namespace dxvk {
|
|||||||
ULONG refCount = m_refCount++;
|
ULONG refCount = m_refCount++;
|
||||||
if (refCount == 0ul)
|
if (refCount == 0ul)
|
||||||
AddRefPrivate();
|
AddRefPrivate();
|
||||||
return refCount;
|
return refCount + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ULONG STDMETHODCALLTYPE Release() {
|
ULONG STDMETHODCALLTYPE Release() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user