- Fix probably one of the most devastating hidden ROS bugs currently in trunk. KWAIT_...
authorAlex Ionescu <aionescu@gmail.com>
Wed, 11 Jan 2006 20:16:29 +0000 (20:16 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Wed, 11 Jan 2006 20:16:29 +0000 (20:16 +0000)
commitad10829f1d2d0cf8618b943833d904da862eec10
treeab624cadd0038cd5096ebc349f7dea808933d023
parent771a737faaf40d422b6323ef4d6766d84de014f9
- Fix probably one of the most devastating hidden ROS bugs currently in trunk. KWAIT_BLOCK's WaitType was defined as USHORT instead of UCHAR, causing a KeWaitForMultipleObjects of 2 or more objects to overwrite the Thread's PreviousMode (an effect of this is that 99% of user-mode callbacks from win32k were being done with the mode set to Kernel-Mode instead of UserMode). A KeWaitForMultipleObjects of 3 or more objects, or the timer object itself in some cases would cause this conflict to occur with the ResourceIndex member, potentially corrupting the ERESOURCE owner table in my updated implementation.

svn path=/trunk/; revision=20788
reactos/w32api/include/ddk/winddk.h