mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +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
|
||
---|---|---|
.. | ||
ntuser | ||
rtl | ||
user32 | ||
user32_vista | ||
winsrv |