Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1e21e828
Commit
1e21e828
authored
Jun 23, 2023
by
Tim Clem
Committed by
Alexandre Julliard
Jun 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Detect a missed WM_LBUTTONUP in the size/move loop.
parent
7ae55662
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
defwnd.c
dlls/win32u/defwnd.c
+11
-0
No files found.
dlls/win32u/defwnd.c
View file @
1e21e828
...
@@ -788,6 +788,17 @@ static void sys_command_size_move( HWND hwnd, WPARAM wparam )
...
@@ -788,6 +788,17 @@ static void sys_command_size_move( HWND hwnd, WPARAM wparam )
{
{
NtUserTranslateMessage
(
&
msg
,
0
);
NtUserTranslateMessage
(
&
msg
,
0
);
NtUserDispatchMessage
(
&
msg
);
NtUserDispatchMessage
(
&
msg
);
/* It's possible that the window proc that handled the dispatch consumed a
* WM_LBUTTONUP. Detect that and terminate the loop as if we'd gotten it. */
if
(
!
(
NtUserGetKeyState
(
VK_LBUTTON
)
&
0x8000
))
{
DWORD
last_pos
=
NtUserGetThreadInfo
()
->
message_pos
;
pt
.
x
=
((
int
)(
short
)
LOWORD
(
last_pos
));
pt
.
y
=
((
int
)(
short
)
HIWORD
(
last_pos
));
break
;
}
continue
;
/* We are not interested in other messages */
continue
;
/* We are not interested in other messages */
}
}
...
...
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