Dan Hipschman : user: Add a test for CreateWindowEx.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Aug 4 14:57:29 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 50486859706d01f5d639d8029a5cba71bdd9ccae
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=50486859706d01f5d639d8029a5cba71bdd9ccae

Author: Dan Hipschman <dsh at linux.ucla.edu>
Date:   Fri Aug  4 10:08:00 2006 -0700

user: Add a test for CreateWindowEx.

---

 dlls/user/tests/win.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/user/tests/win.c b/dlls/user/tests/win.c
index a1c7539..9d37253 100644
--- a/dlls/user/tests/win.c
+++ b/dlls/user/tests/win.c
@@ -137,8 +137,10 @@ static void test_parent_owner(void)
     trace( "main window %p main2 %p desktop %p child %p\n", hwndMain, hwndMain2, desktop, child );
 
     /* child without parent, should fail */
+    SetLastError(0xdeadbeef);
     test = CreateWindowExA(0, "ToolWindowClass", "Tool window 1",
                            WS_CHILD, 0, 0, 100, 100, 0, 0, 0, NULL );
+    todo_wine ok( GetLastError() == ERROR_TLW_WITH_WSCHILD, "CreateWindowExA should call SetLastError\n" );
     ok( !test, "WS_CHILD without parent created\n" );
 
     /* desktop window */




More information about the wine-cvs mailing list