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
e7874fd8
Commit
e7874fd8
authored
Jul 06, 2004
by
Marcus Meissner
Committed by
Alexandre Julliard
Jul 06, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace lvalue casts of post increments for newer compiler.
parent
5d8997d8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
winproc.c
windows/winproc.c
+5
-4
No files found.
windows/winproc.c
View file @
e7874fd8
...
...
@@ -2008,11 +2008,12 @@ INT WINPROC_MapMsg32ATo16( HWND hwnd, UINT msg32, WPARAM wParam32,
return
1
;
case
LB_GETSELITEMS
:
{
LPINT16
items
;
LPARAM
*
items
;
/* old LPARAM first, then *pwparam16 x INT16 entries */
*
pwparam16
=
(
WPARAM16
)
min
(
wParam32
,
0x7f80
);
/* Must be < 64K */
if
(
!
(
items
=
HeapAlloc
(
GetProcessHeap
(),
0
,
*
pwparam16
*
sizeof
(
INT16
)
+
sizeof
(
LPARAM
))))
return
-
1
;
*
((
LPARAM
*
)
items
)
++
=
*
plparam
;
/* Store the previous lParam */
*
items
++
=
*
plparam
;
/* Store the previous lParam */
*
plparam
=
MapLS
(
items
);
}
*
pmsg16
=
LB_GETSELITEMS16
;
...
...
@@ -2152,10 +2153,10 @@ INT WINPROC_MapMsg32ATo16( HWND hwnd, UINT msg32, WPARAM wParam32,
case
WM_GETTEXT
:
case
WM_ASKCBFORMATNAME
:
{
LP
STR
str
;
LP
ARAM
*
str
;
/* store LPARAM, then *pwparam16 char space */
*
pwparam16
=
(
WPARAM16
)
min
(
wParam32
,
0xff80
);
/* Must be < 64K */
if
(
!
(
str
=
HeapAlloc
(
GetProcessHeap
(),
0
,
*
pwparam16
+
sizeof
(
LPARAM
))))
return
-
1
;
*
((
LPARAM
*
)
str
)
++
=
*
plparam
;
/* Store the previous lParam */
*
str
++
=
*
plparam
;
/* Store the previous lParam */
*
plparam
=
MapLS
(
str
);
}
return
1
;
...
...
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