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
463b713d
Commit
463b713d
authored
Nov 01, 1998
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed crashes with WM_GETDLGCODE translation.
parent
ea584724
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
winproc.c
windows/winproc.c
+8
-2
No files found.
windows/winproc.c
View file @
463b713d
...
...
@@ -897,6 +897,7 @@ INT32 WINPROC_MapMsg16To32A( UINT16 msg16, WPARAM16 wParam16, UINT32 *pmsg32,
}
return
1
;
case
WM_GETDLGCODE
:
if
(
*
plparam
)
{
LPMSG16
msg16
=
(
LPMSG16
)
PTR_SEG_TO_LIN
(
*
plparam
);
LPMSG32
msg32
=
(
LPMSG32
)
HeapAlloc
(
SystemHeap
,
0
,
sizeof
(
MSG32
)
);
...
...
@@ -914,8 +915,9 @@ INT32 WINPROC_MapMsg16To32A( UINT16 msg16, WPARAM16 wParam16, UINT32 *pmsg32,
return
-
1
;
}
*
plparam
=
(
LPARAM
)
msg32
;
return
1
;
}
return
1
;
else
return
0
;
case
WM_NOTIFY
:
*
plparam
=
(
LPARAM
)
PTR_SEG_TO_LIN
(
*
plparam
);
return
1
;
...
...
@@ -1022,6 +1024,7 @@ LRESULT WINPROC_UnmapMsg16To32A( UINT32 msg, WPARAM32 wParam, LPARAM lParam,
}
break
;
case
WM_GETDLGCODE
:
if
(
lParam
)
{
LPMSG32
msg32
=
(
LPMSG32
)
lParam
;
...
...
@@ -1092,6 +1095,7 @@ INT32 WINPROC_MapMsg16To32W( UINT16 msg16, WPARAM16 wParam16, UINT32 *pmsg32,
}
return
1
;
case
WM_GETDLGCODE
:
if
(
*
plparam
)
{
LPMSG16
msg16
=
(
LPMSG16
)
PTR_SEG_TO_LIN
(
*
plparam
);
LPMSG32
msg32
=
(
LPMSG32
)
HeapAlloc
(
SystemHeap
,
0
,
sizeof
(
MSG32
)
);
...
...
@@ -1109,8 +1113,9 @@ INT32 WINPROC_MapMsg16To32W( UINT16 msg16, WPARAM16 wParam16, UINT32 *pmsg32,
return
-
1
;
}
*
plparam
=
(
LPARAM
)
msg32
;
return
1
;
}
return
1
;
else
return
0
;
default:
/* No Unicode translation needed */
return
WINPROC_MapMsg16To32A
(
msg16
,
wParam16
,
pmsg32
,
pwparam32
,
plparam
);
...
...
@@ -1160,6 +1165,7 @@ LRESULT WINPROC_UnmapMsg16To32W( UINT32 msg, WPARAM32 wParam, LPARAM lParam,
}
break
;
case
WM_GETDLGCODE
:
if
(
lParam
)
{
LPMSG32
msg32
=
(
LPMSG32
)
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