[PATCH 1/2] ntdll: Allow 'all processors' flag used in Vista and newer (try 3).

Erich Hoover ehoover at mines.edu
Fri Feb 19 17:17:28 CST 2010


Real Name:
    Erich Hoover
Description:
    The attached patch adds support for
SetThreadAffinityMask(thread,-1), and the NtSetInformationThread
equivalent, which succeeds on Windows Vista and newer.  This version
includes a test in ntdll demonstrating this functionality.  The first
part of the test looks for success/failure in the call itself and is
applicable even for single processor systems (tested against many
Windows versions using the wonderful Wine Test Bot).  The second part
of the test confirms that the intended behavior of passing a "-1" is
to enable all processors, this test is skipped on single processor
systems (so this was tested on a multi-processor Windows 7 box, as the
Wine Test Bot only has one processor for each VM).

    Note that this "all processors" flag is not documented, but was
discovered tracking down another issue.  Please see the wine-devel
thread for more information:
http://www.winehq.org/pipermail/wine-devel/2010-February/081879.html
ChangeLog:
    ntdll: Allow 'all processors' flag used in Vista and newer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ntdll-Allow-all-processors-flag-used-in-Vista-and-ne.patch
Type: text/x-patch
Size: 3301 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100219/ffa67699/attachment.bin>


More information about the wine-patches mailing list