1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-13 19:29:14 +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:
Philip Rebohle 2019-06-01 22:12:32 +02:00
parent 1e0fe36cae
commit 7d91ff06a3

View File

@ -33,7 +33,7 @@ namespace dxvk {
ULONG refCount = m_refCount++;
if (refCount == 0ul)
AddRefPrivate();
return refCount;
return refCount + 1;
}
ULONG STDMETHODCALLTYPE Release() {