mirror of
https://github.com/reactos/reactos.git
synced 2024-11-01 04:11:30 +00:00
cf955094b4
Based on the Doug Lyons' test in #7087, I found that my previous fix stopped working partially. Or rather, it would only work until the 32767 indexes were exhausted. It seems to me that the behavior of the bitfield has changed, because when I published the previous patch, it passed my tests.
- Bit array generates free ID cyclically, in the previous code after 32767 indexes expired the same index was returned, because of this the previous fix would stop working after expiration, so change the logic of calculating the next index.
- Change the index range to 256-32767 to match Windows, indexes 0-255 can theoretically be used as reserved for system purposes.
Addendum to
|
||
---|---|---|
.. | ||
drivers | ||
gdi | ||
include | ||
printing | ||
reactx | ||
user | ||
CMakeLists.txt | ||
napi.h | ||
pch.h | ||
sys-stubs.S | ||
w32ksvc32.h | ||
w32ksvc64.h | ||
win32k.h | ||
win32k.rc | ||
win32k.spec | ||
win32kp.h |