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:
parent
1e0fe36cae
commit
7d91ff06a3
@ -33,7 +33,7 @@ namespace dxvk {
|
||||
ULONG refCount = m_refCount++;
|
||||
if (refCount == 0ul)
|
||||
AddRefPrivate();
|
||||
return refCount;
|
||||
return refCount + 1;
|
||||
}
|
||||
|
||||
ULONG STDMETHODCALLTYPE Release() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user