Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0cf86baf
Commit
0cf86baf
authored
Nov 18, 2014
by
Sebastian Lackner
Committed by
Alexandre Julliard
Nov 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Remove unnecessary char array and add additional test in test_FindWindowEx.
parent
9f36db8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
win.c
dlls/user32/tests/win.c
+5
-6
No files found.
dlls/user32/tests/win.c
View file @
0cf86baf
...
...
@@ -6931,24 +6931,23 @@ todo_wine
static
void
test_FindWindowEx
(
void
)
{
HWND
hwnd
,
found
;
CHAR
title
[
1
];
hwnd
=
CreateWindowExA
(
0
,
"MainWindowClass"
,
"caption"
,
WS_POPUP
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
NULL
);
ok
(
hwnd
!=
0
,
"CreateWindowExA error %d
\n
"
,
GetLastError
()
);
title
[
0
]
=
0
;
found
=
FindWindowExA
(
0
,
0
,
"MainWindowClass"
,
title
);
found
=
FindWindowExA
(
0
,
0
,
"MainWindowClass"
,
""
);
ok
(
found
==
NULL
,
"expected a NULL hwnd
\n
"
);
found
=
FindWindowExA
(
0
,
0
,
"MainWindowClass"
,
NULL
);
ok
(
found
==
hwnd
,
"found is %p, expected a valid hwnd
\n
"
,
found
);
found
=
FindWindowExA
(
0
,
0
,
"MainWindowClass"
,
"caption"
);
ok
(
found
==
hwnd
,
"found is %p, expected a valid hwnd
\n
"
,
found
);
DestroyWindow
(
hwnd
);
hwnd
=
CreateWindowExA
(
0
,
"MainWindowClass"
,
NULL
,
WS_POPUP
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
NULL
);
ok
(
hwnd
!=
0
,
"CreateWindowExA error %d
\n
"
,
GetLastError
()
);
found
=
FindWindowExA
(
0
,
0
,
"MainWindowClass"
,
title
);
found
=
FindWindowExA
(
0
,
0
,
"MainWindowClass"
,
""
);
ok
(
found
==
hwnd
,
"found is %p, expected a valid hwnd
\n
"
,
found
);
found
=
FindWindowExA
(
0
,
0
,
"MainWindowClass"
,
NULL
);
ok
(
found
==
hwnd
,
"found is %p, expected a valid hwnd
\n
"
,
found
);
...
...
@@ -6956,7 +6955,7 @@ static void test_FindWindowEx(void)
DestroyWindow
(
hwnd
);
/* test behaviour with a window title that is an empty character */
found
=
FindWindowExA
(
0
,
0
,
"Shell_TrayWnd"
,
title
);
found
=
FindWindowExA
(
0
,
0
,
"Shell_TrayWnd"
,
""
);
ok
(
found
!=
NULL
,
"found is NULL, expected a valid hwnd
\n
"
);
found
=
FindWindowExA
(
0
,
0
,
"Shell_TrayWnd"
,
NULL
);
ok
(
found
!=
NULL
,
"found is NULL, expected a valid hwnd
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment