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

Ge van Geldorp ggeldorp at vmware.com
Mon Aug 24 07:26:44 CDT 2009


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: 7076eda029893cd5d1333a6c8eb1a1949ac068de.diff
Type: text/x-patch
Size: 1868 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090824/90a55e3b/attachment.bin>


More information about the wine-patches mailing list