Re: [PATCH 1/3] ddraw: Size handling fixes for IDirect3DDevice::GetCaps (try 4)
Dec. 2, 2011
10:25 a.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
5227
Age (days ago)
5227
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard