6 Dec
2008
6 Dec
'08
2:34 p.m.
Henri Verbeet a écrit :
2008/12/6 Jérôme Gardou <jerome.gardou(a)gmail.com>:
According to d3d9_private.h , ref is a LONG.
ref is not defined in d3d9_private.h.
Taken from d3d9_private.h : typedef struct IDirect3DDevice9Impl { /* IUnknown fields */ const IDirect3DDevice9ExVtbl *lpVtbl; LONG ref; ... That's why the compiler did not complained... But release actually returns a ULONG, and the IUnknown ref is an ULONG anyway... I guess this should be changed for consistency.