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
30e1445f
Commit
30e1445f
authored
Feb 05, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Fix the menu capture test for NT4.
parent
4f1604e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
win.c
dlls/user32/tests/win.c
+11
-3
No files found.
dlls/user32/tests/win.c
View file @
30e1445f
...
...
@@ -2720,11 +2720,17 @@ static LRESULT CALLBACK test_capture_4_proc(HWND hWnd, UINT msg, WPARAM wParam,
/* check that re-setting the capture for the menu fails */
set_cap_wnd
=
SetCapture
(
cap_wnd
);
ok
(
!
set_cap_wnd
,
"SetCapture should have failed!
\n
"
);
ok
(
!
set_cap_wnd
||
broken
(
set_cap_wnd
==
cap_wnd
),
/* nt4 */
"SetCapture should have failed!
\n
"
);
if
(
set_cap_wnd
)
{
DestroyWindow
(
hWnd
);
break
;
}
/* check that SetCapture fails for another window and that it does not touch the error code */
set_cap_wnd
=
SetCapture
(
hWnd
);
ok
(
!
set_cap_wnd
,
"
Release
Capture should have failed!
\n
"
);
ok
(
!
set_cap_wnd
,
"
Set
Capture should have failed!
\n
"
);
/* check that ReleaseCapture fails and does not touch the error code */
status
=
ReleaseCapture
();
...
...
@@ -2764,8 +2770,10 @@ static void test_capture_4(void)
HINSTANCE
hInstance
=
GetModuleHandleA
(
NULL
);
if
(
!
pGetGUIThreadInfo
)
{
win_skip
(
"GetGUIThreadInfo is not available
\n
"
);
return
;
}
wclass
.
lpszClassName
=
"TestCapture4Class"
;
wclass
.
style
=
CS_HREDRAW
|
CS_VREDRAW
;
wclass
.
lpfnWndProc
=
test_capture_4_proc
;
...
...
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