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
d3463d16
Commit
d3463d16
authored
Oct 03, 2005
by
Marcus Meissner
Committed by
Alexandre Julliard
Oct 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ReleaseCapture should return TRUE.
parent
9c63540d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
input.c
dlls/user/input.c
+13
-1
win.c
dlls/user/tests/win.c
+6
-1
No files found.
dlls/user/input.c
View file @
d3463d16
...
...
@@ -183,7 +183,19 @@ HWND WINAPI SetCapture( HWND hwnd )
*/
BOOL
WINAPI
ReleaseCapture
(
void
)
{
return
(
SetCapture
(
0
)
!=
0
);
BOOL
ret
;
HWND
previous
=
0
;
SERVER_START_REQ
(
set_capture_window
)
{
req
->
handle
=
0
;
req
->
flags
=
0
;
if
((
ret
=
!
wine_server_call_err
(
req
)))
previous
=
reply
->
previous
;
}
SERVER_END_REQ
;
if
(
previous
)
SendMessageW
(
previous
,
WM_CAPTURECHANGED
,
0
,
0
);
return
ret
;
}
...
...
dlls/user/tests/win.c
View file @
d3463d16
...
...
@@ -2173,6 +2173,8 @@ static void test_capture_2(void)
static
void
test_capture_3
(
HWND
hwnd1
,
HWND
hwnd2
)
{
BOOL
ret
;
ShowWindow
(
hwnd1
,
SW_HIDE
);
ShowWindow
(
hwnd2
,
SW_HIDE
);
...
...
@@ -2188,7 +2190,10 @@ static void test_capture_3(HWND hwnd1, HWND hwnd2)
ShowWindow
(
hwnd1
,
SW_SHOW
);
check_wnd_state
(
hwnd1
,
hwnd1
,
hwnd1
,
hwnd2
);
ReleaseCapture
();
ret
=
ReleaseCapture
();
ok
(
ret
,
"releasecapture did not return TRUE.
\n
"
);
ret
=
ReleaseCapture
();
ok
(
ret
,
"releasecapture did not return TRUE after second try.
\n
"
);
}
static
void
test_keyboard_input
(
HWND
hwnd
)
...
...
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