server: Make sure pids/tids are multiples of four.
commitdaa120309e1f674a251497ff6a014168d339c90c
authorRémi Bernon <rbernon@codeweavers.com>
Sat, 25 Apr 2020 08:05:10 +0000 (25 10:05 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 27 Apr 2020 10:01:44 +0000 (27 12:01 +0200)
tree25efcffd0c06a88a002206677c98e89af6976373
parent8bb684c63e02cabde0908b9b22d0bad3f044b214
server: Make sure pids/tids are multiples of four.

Street Fighter V unpacker relies on it when validating other processes
for its anti-debug checks, it uses (PID&0xfffffffc)>>2 as an array index
and then checks back indexes against PIDs, and terminates early if some
PIDs do not match.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/ntdll/tests/info.c
server/process.c