Re: [PATCH 1/3] ddraw: Size handling fixes for IDirect3DDevice::GetCaps (try 4)
2 Dec
2011
2 Dec
'11
4:25 p.m.
stefan(a)codeweavers.com writes:
+static inline BOOL check_d3ddevicedesc_size(DWORD size) +{ + if (size == 172 || size == 204 || size == sizeof(D3DDEVICEDESC) /* 252 */) return TRUE; + return FALSE; +}
You should use something like FIELD_OFFSET instead of these magic constants. -- Alexandre Julliard julliard(a)winehq.org
5126
Age (days ago)
5126
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard