[PATCH 2/2] kernel32/tests: Add test for 'all processors' flag on Vista and newer (try 3).
Henri Verbeet
hverbeet at gmail.com
Fri Feb 19 18:08:07 CST 2010
On 20 February 2010 00:19, Erich Hoover <ehoover at mines.edu> wrote:
> + /* NOTE: Pre-Vista does not recognize the "all processors" flag (-1) */
> + thread_affinity = -1;
~0UL probably makes more sense than -1 for an unsigned variable.
> - const ULONG_PTR *paff = data;
> + ULONG_PTR req_aff = *(ULONG_PTR *)data;
You shouldn't cast const away.
Is "-1" special, or does the call just always mask the requested mask
with the available processors on Vista and above?
More information about the wine-devel
mailing list