[WIN32K]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 17 Jun 2014 20:01:23 +0000 (20:01 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 17 Jun 2014 20:01:23 +0000 (20:01 +0000)
commit340e8ae45f8c0d94033a87a4175d00a4fbd59b39
tree507adbc0292242430bcad2e18bb786421ba28013
parent55f8bd0cd2a77aecef7c99f336760288302ca58b
[WIN32K]
There is a bug in win32k (who would have thought that?) that consists in holding a winstation spinlock while running PAGED_CODE MmCopyToCaller function, when building the list of desktops of a given window station (the bug is easily triggerable when calling EnumDesktopsW). Since this lock is never used in anyplace but in this function, which, by the way, is just a reader function that fills user buffer, I consider that it is safe to remove this lock. However I want approval from win32k specialists. Hence I just disable the code with a define USE_WINSTA_LOCK. If this lock is really needed, please rewrite the BuildDesktopNameList function !! Otherwise remove this lock and the associated code !!
This is a blocker for the shutdown code.

svn path=/trunk/; revision=63610
reactos/win32ss/user/ntuser/winsta.c
reactos/win32ss/user/ntuser/winsta.h