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
d753a999
Commit
d753a999
authored
May 01, 1999
by
Francois Boisvert
Committed by
Alexandre Julliard
May 01, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a wrong usage of WIN_FindWndPtr/WIN_ReleaseWndPtr in
TranslateMDISysAccel16.
parent
e85220dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
mdi.c
windows/mdi.c
+7
-8
No files found.
windows/mdi.c
View file @
d753a999
...
...
@@ -1840,21 +1840,22 @@ BOOL WINAPI TranslateMDISysAccel( HWND hwndClient, LPMSG msg )
*/
BOOL16
WINAPI
TranslateMDISysAccel16
(
HWND16
hwndClient
,
LPMSG16
msg
)
{
WND
*
clientWnd
=
WIN_FindWndPtr
(
hwndClient
);
if
(
clientWnd
&&
(
msg
->
message
==
WM_KEYDOWN
||
msg
->
message
==
WM_SYSKEYDOWN
))
if
(
IsWindow
(
hwndClient
)
&&
(
msg
->
message
==
WM_KEYDOWN
||
msg
->
message
==
WM_SYSKEYDOWN
))
{
MDICLIENTINFO
*
ci
=
NULL
;
WND
*
wnd
;
HWND
wnd
;
WND
*
clientWnd
=
WIN_FindWndPtr
(
hwndClient
);
ci
=
(
MDICLIENTINFO
*
)
clientWnd
->
wExtra
;
wnd
=
ci
->
hwndActiveChild
;
WIN_ReleaseWndPtr
(
clientWnd
);
wnd
=
WIN_FindWndPtr
(
ci
->
hwndActiveChild
);
if
(
wnd
&&
!
(
wnd
->
dwStyle
&
WS_DISABLED
)
)
if
(
IsWindow
(
wnd
)
&&
!
(
GetWindowLongA
(
wnd
,
GWL_STYLE
)
&
WS_DISABLED
)
)
{
WPARAM16
wParam
=
0
;
WIN_ReleaseWndPtr
(
wnd
);
/* translate if the Ctrl key is down and Alt not. */
if
(
(
GetKeyState
(
VK_CONTROL
)
&
0x8000
)
&&
...
...
@@ -1880,9 +1881,7 @@ BOOL16 WINAPI TranslateMDISysAccel16( HWND16 hwndClient, LPMSG16 msg )
return
1
;
}
}
WIN_ReleaseWndPtr
(
wnd
);
}
WIN_ReleaseWndPtr
(
clientWnd
);
return
0
;
/* failure */
}
...
...
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