ntdll/tests and kernel32/tests: Fix atom tests on Win7 (Resend)

Ge van Geldorp ggeldorp at vmware.com
Tue Oct 6 04:12:58 CDT 2009


http://www.winehq.org/pipermail/wine-patches/2009-August/077568.html got sucked
into the wine-patches black hole.

It seems that on Windows 7 only apps that have called into win32k.sys have
access to the global atom table (otherwise you'll get a STATUS_ACCESS_DENIED).
Found this when adding some MessageBox() calls to debug, which made the problem
go away. I don't fully understand what's going on here, obviously there is
some interaction between win32k.sys and the global atom table (window classes,
registered messages), but I'd have expected win32k.sys to depend on ntoskrnl,
not the other way around.
Since the problem and fix are identical for ntdll and kernel32 I've combined
them into a single patch but obviously I can split them if that's preferred.

Changelog:
  ntdll/tests and kernel32/tests: Fix atom tests on Win7

---
 dlls/kernel32/tests/Makefile.in |    2 +-
 dlls/kernel32/tests/atom.c      |    4 ++++
 dlls/ntdll/tests/Makefile.in    |    2 +-
 dlls/ntdll/tests/atom.c         |    5 +++++
 4 files changed, 11 insertions(+), 2 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2d441b411d194ad0c27470674c431d495f685610.diff
Type: text/x-patch
Size: 1869 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20091006/55fcef5f/attachment.bin>


More information about the wine-patches mailing list