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 a6e9e57269a..5101c93bf41 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -185,13 +185,11 @@ void wined3d_adapter_cleanup(struct wined3d_adapter *adapter) D3DKMTCloseAdapter(&close_adapter_desc); }
-ULONG CDECL wined3d_incref(struct wined3d *wined3d) +void CDECL wined3d_incref(struct wined3d *wined3d) { unsigned int refcount = InterlockedIncrement(&wined3d->ref);
TRACE("%p increasing refcount to %u.\n", wined3d, refcount); - - return refcount; }
ULONG CDECL wined3d_decref(struct wined3d *wined3d) diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h index d20157b1223..1bd4c693a00 100644 --- a/include/wine/wined3d.h +++ b/include/wine/wined3d.h @@ -2313,7 +2313,7 @@ struct wined3d_adapter * __cdecl wined3d_get_adapter(const struct wined3d *wined UINT __cdecl wined3d_get_adapter_count(const struct wined3d *wined3d); HRESULT __cdecl wined3d_get_device_caps(const struct wined3d_adapter *adapter, enum wined3d_device_type device_type, struct wined3d_caps *caps); -ULONG __cdecl wined3d_incref(struct wined3d *wined3d); +void __cdecl wined3d_incref(struct wined3d *wined3d); HRESULT __cdecl wined3d_register_software_device(struct wined3d *wined3d, void *init_function); BOOL __cdecl wined3d_register_window(struct wined3d *wined3d, HWND window, struct wined3d_device *device, unsigned int flags);