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
453cf859
Commit
453cf859
authored
Dec 29, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user.exe: Remove some superfluous WPARAM/LPARAM casts.
parent
36f9248c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
15 deletions
+14
-15
dialog.c
dlls/user.exe16/dialog.c
+2
-2
message.c
dlls/user.exe16/message.c
+1
-1
user.c
dlls/user.exe16/user.c
+6
-7
window.c
dlls/user.exe16/window.c
+5
-5
No files found.
dlls/user.exe16/dialog.c
View file @
453cf859
...
...
@@ -541,7 +541,7 @@ HWND16 WINAPI GetDlgItem16( HWND16 hwndDlg, INT16 id )
*/
void
WINAPI
SetDlgItemText16
(
HWND16
hwnd
,
INT16
id
,
SEGPTR
lpString
)
{
SendDlgItemMessage16
(
hwnd
,
id
,
WM_SETTEXT
,
0
,
(
LPARAM
)
lpString
);
SendDlgItemMessage16
(
hwnd
,
id
,
WM_SETTEXT
,
0
,
lpString
);
}
...
...
@@ -550,7 +550,7 @@ void WINAPI SetDlgItemText16( HWND16 hwnd, INT16 id, SEGPTR lpString )
*/
INT16
WINAPI
GetDlgItemText16
(
HWND16
hwnd
,
INT16
id
,
SEGPTR
str
,
UINT16
len
)
{
return
(
INT16
)
SendDlgItemMessage16
(
hwnd
,
id
,
WM_GETTEXT
,
len
,
(
LPARAM
)
str
);
return
SendDlgItemMessage16
(
hwnd
,
id
,
WM_GETTEXT
,
len
,
str
);
}
...
...
dlls/user.exe16/message.c
View file @
453cf859
...
...
@@ -2287,7 +2287,7 @@ static LRESULT edit_proc16( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, B
(
INT
)(
SHORT
)
LOWORD
(
lParam
),
FALSE
);
break
;
case
EM_LINEINDEX16
:
if
((
INT16
)
wParam
==
-
1
)
wParam
=
(
WPARAM
)
-
1
;
if
((
INT16
)
wParam
==
-
1
)
wParam
=
-
1
;
result
=
wow_handlers32
.
edit_proc
(
hwnd
,
msg
-
msg16_offset
,
wParam
,
lParam
,
FALSE
);
break
;
case
EM_SETSEL16
:
...
...
dlls/user.exe16/user.c
View file @
453cf859
...
...
@@ -2743,22 +2743,21 @@ DWORD WINAPI DragObject16( HWND16 hwndScope, HWND16 hWnd, UINT16 wObj,
SetCursor
(
hCurrentCursor
);
/* send WM_DRAGLOOP */
SendMessage16
(
hWnd
,
WM_DRAGLOOP
,
(
WPARAM16
)(
hCurrentCursor
!=
hBummer
),
(
LPARAM
)
spDragInfo
);
SendMessage16
(
hWnd
,
WM_DRAGLOOP
,
hCurrentCursor
!=
hBummer
,
spDragInfo
);
/* send WM_DRAGSELECT or WM_DRAGMOVE */
if
(
hCurrentWnd
!=
lpDragInfo
->
hScope
)
{
if
(
hCurrentWnd
)
SendMessage16
(
hCurrentWnd
,
WM_DRAGSELECT
,
0
,
(
LPARAM
)
MAKELONG
(
LOWORD
(
spDragInfo
)
+
sizeof
(
DRAGINFO16
),
HIWORD
(
spDragInfo
))
);
MAKELPARAM
(
LOWORD
(
spDragInfo
)
+
sizeof
(
DRAGINFO16
),
HIWORD
(
spDragInfo
))
);
hCurrentWnd
=
lpDragInfo
->
hScope
;
if
(
hCurrentWnd
)
SendMessage16
(
hCurrentWnd
,
WM_DRAGSELECT
,
1
,
(
LPARAM
)
spDragInfo
);
SendMessage16
(
hCurrentWnd
,
WM_DRAGSELECT
,
1
,
spDragInfo
);
}
else
if
(
hCurrentWnd
)
SendMessage16
(
hCurrentWnd
,
WM_DRAGMOVE
,
0
,
(
LPARAM
)
spDragInfo
);
SendMessage16
(
hCurrentWnd
,
WM_DRAGMOVE
,
0
,
spDragInfo
);
}
while
(
msg
.
message
!=
WM_LBUTTONUP
&&
msg
.
message
!=
WM_NCLBUTTONUP
);
...
...
@@ -2769,7 +2768,7 @@ DWORD WINAPI DragObject16( HWND16 hwndScope, HWND16 hWnd, UINT16 wObj,
if
(
hCurrentCursor
!=
hBummer
)
msg
.
lParam
=
SendMessage16
(
lpDragInfo
->
hScope
,
WM_DROPOBJECT
,
(
WPARAM16
)
hWnd
,
(
LPARAM
)
spDragInfo
);
hWnd
,
spDragInfo
);
else
msg
.
lParam
=
0
;
GlobalFree16
(
hDragInfo
);
...
...
dlls/user.exe16/window.c
View file @
453cf859
...
...
@@ -347,7 +347,7 @@ INT16 WINAPI GetWindowText16( HWND16 hwnd, SEGPTR lpString, INT16 nMaxCount )
*/
BOOL16
WINAPI
SetWindowText16
(
HWND16
hwnd
,
SEGPTR
lpString
)
{
return
SendMessage16
(
hwnd
,
WM_SETTEXT
,
0
,
(
LPARAM
)
lpString
);
return
SendMessage16
(
hwnd
,
WM_SETTEXT
,
0
,
lpString
);
}
...
...
@@ -1475,9 +1475,9 @@ void WINAPI PaintRect16( HWND16 hwndParent, HWND16 hwnd, HDC16 hdc,
HWND
parent
=
WIN_Handle32
(
hwndParent
),
hwnd32
=
WIN_Handle32
(
hwnd
);
if
(
!
parent
)
return
;
hbrush
=
SendMessageW
(
parent
,
WM_CTLCOLORMSGBOX
+
hbrush
,
(
WPARAM
)
hdc
,
(
LPARAM
)
hwnd32
);
hbrush
=
SendMessageW
(
parent
,
WM_CTLCOLORMSGBOX
+
hbrush
,
hdc
,
(
LPARAM
)
hwnd32
);
if
(
!
hbrush
)
hbrush
=
DefWindowProcW
(
parent
,
WM_CTLCOLORMSGBOX
+
hbrush
,
(
WPARAM
)
hdc
,
(
LPARAM
)
hwnd32
);
hdc
,
(
LPARAM
)
hwnd32
);
}
if
(
hbrush
)
FillRect16
(
hdc
,
rect
,
hbrush
);
}
...
...
@@ -1493,9 +1493,9 @@ HBRUSH16 WINAPI GetControlBrush16( HWND16 hwnd, HDC16 hdc, UINT16 ctlType )
HWND
parent
=
GetParent
(
hwnd32
);
if
(
!
parent
)
parent
=
hwnd32
;
ret
=
SendMessageW
(
parent
,
WM_CTLCOLORMSGBOX
+
ctlType
,
(
WPARAM
)
hdc
,
(
LPARAM
)
hwnd32
);
ret
=
SendMessageW
(
parent
,
WM_CTLCOLORMSGBOX
+
ctlType
,
hdc
,
(
LPARAM
)
hwnd32
);
if
(
!
ret
)
ret
=
DefWindowProcW
(
parent
,
WM_CTLCOLORMSGBOX
+
ctlType
,
(
WPARAM
)
hdc
,
(
LPARAM
)
hwnd32
);
hdc
,
(
LPARAM
)
hwnd32
);
return
ret
;
}
...
...
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