From: Max Figura maxfigura5061@gmail.com
--- dlls/wined3d/directx.c | 4 +--- include/wine/wined3d.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 5101c93bf41..b9b0fff9c16 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -192,7 +192,7 @@ void CDECL wined3d_incref(struct wined3d *wined3d) TRACE("%p increasing refcount to %u.\n", wined3d, refcount); }
-ULONG CDECL wined3d_decref(struct wined3d *wined3d) +void CDECL wined3d_decref(struct wined3d *wined3d) { unsigned int refcount = InterlockedDecrement(&wined3d->ref);
@@ -212,8 +212,6 @@ ULONG CDECL wined3d_decref(struct wined3d *wined3d) heap_free(wined3d); wined3d_mutex_unlock(); } - - return refcount; }
/* Certain applications (e.g. Steam) complain if we report an outdated driver diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h index 1bd4c693a00..efce8448d69 100644 --- a/include/wine/wined3d.h +++ b/include/wine/wined3d.h @@ -2307,7 +2307,7 @@ HRESULT __cdecl wined3d_check_device_type(const struct wined3d *wined3d, enum wined3d_format_id display_format_id, enum wined3d_format_id backbuffer_format_id, BOOL windowed); struct wined3d * __cdecl wined3d_create(uint32_t flags); -ULONG __cdecl wined3d_decref(struct wined3d *wined3d); +void __cdecl wined3d_decref(struct wined3d *wined3d); struct wined3d_adapter * __cdecl wined3d_get_adapter(const struct wined3d *wined3d, unsigned int idx); UINT __cdecl wined3d_get_adapter_count(const struct wined3d *wined3d);