Module: wine Branch: master Commit: 9925991bf3363088d70fbcf6f185f65e8eab4795 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9925991bf3363088d70fbcf6f1...
Author: Ge van Geldorp ggeldorp@vmware.com Date: Mon Sep 17 00:00:00 2001 +0200
ntdll/tests: Fix atom tests on Win7.
---
dlls/ntdll/tests/Makefile.in | 2 +- dlls/ntdll/tests/atom.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/dlls/ntdll/tests/Makefile.in b/dlls/ntdll/tests/Makefile.in index 6bc2623..e501d6a 100644 --- a/dlls/ntdll/tests/Makefile.in +++ b/dlls/ntdll/tests/Makefile.in @@ -3,7 +3,7 @@ TOPOBJDIR = ../../.. SRCDIR = @srcdir@ VPATH = @srcdir@ TESTDLL = ntdll.dll -IMPORTS = kernel32 +IMPORTS = user32 kernel32
CTESTS = \ atom.c \ diff --git a/dlls/ntdll/tests/atom.c b/dlls/ntdll/tests/atom.c index 220ea40..149078f 100644 --- a/dlls/ntdll/tests/atom.c +++ b/dlls/ntdll/tests/atom.c @@ -34,6 +34,7 @@ #include "winbase.h" #include "winreg.h" #include "winnls.h" +#include "winuser.h" #include "wine/test.h" #include "winternl.h"
@@ -478,6 +479,10 @@ START_TEST(atom) InitFunctionPtr(); if (pRtlCreateAtomTable) { + /* Global atom table seems to be available to GUI apps only in + Win7, so let's turn this app into a GUI app */ + GetDesktopWindow(); + test_NtAtom(); test_NtIntAtom(); test_NtRefPinAtom();