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
ac2b288b
Commit
ac2b288b
authored
Jun 08, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Remove redundant system menu handle checks.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
83ed0a63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
defwnd.c
dlls/user32/defwnd.c
+5
-14
No files found.
dlls/user32/defwnd.c
View file @
ac2b288b
...
...
@@ -298,10 +298,6 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
{
LONG
hitcode
;
POINT
pt
;
WND
*
wndPtr
=
WIN_GetPtr
(
hwnd
);
HMENU
hMenu
=
wndPtr
->
hSysMenu
;
WIN_ReleasePtr
(
wndPtr
);
if
(
!
hMenu
)
return
0
;
pt
.
x
=
(
short
)
LOWORD
(
lParam
);
pt
.
y
=
(
short
)
HIWORD
(
lParam
);
hitcode
=
NC_HandleNCHitTest
(
hwnd
,
pt
);
...
...
@@ -315,16 +311,11 @@ static LRESULT DEFWND_DefWinProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPa
break
;
case
WM_POPUPSYSTEMMENU
:
{
/* This is an undocumented message used by the windows taskbar to
display the system menu of windows that belong to other processes. */
HMENU
menu
=
GetSystemMenu
(
hwnd
,
FALSE
);
if
(
menu
)
TrackPopupMenu
(
menu
,
TPM_LEFTBUTTON
|
TPM_RIGHTBUTTON
,
LOWORD
(
lParam
),
HIWORD
(
lParam
),
0
,
hwnd
,
NULL
);
return
0
;
}
/* This is an undocumented message used by the windows taskbar to
display the system menu of windows that belong to other processes. */
TrackPopupMenu
(
GetSystemMenu
(
hwnd
,
FALSE
),
TPM_LEFTBUTTON
|
TPM_RIGHTBUTTON
,
(
short
)
LOWORD
(
lParam
),
(
short
)
HIWORD
(
lParam
),
0
,
hwnd
,
NULL
);
return
0
;
case
WM_NCACTIVATE
:
return
NC_HandleNCActivate
(
hwnd
,
wParam
,
lParam
);
...
...
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