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
4a3c7e27
Commit
4a3c7e27
authored
Aug 17, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wow64win: Use LongToHandle for user handles conversion.
parent
44b706f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
user.c
dlls/wow64win/user.c
+10
-10
No files found.
dlls/wow64win/user.c
View file @
4a3c7e27
...
...
@@ -332,7 +332,7 @@ static MSG *msg_32to64( MSG *msg, const MSG32 *msg32 )
{
if
(
!
msg32
)
return
NULL
;
msg
->
hwnd
=
Ul
ongToHandle
(
msg32
->
hwnd
);
msg
->
hwnd
=
L
ongToHandle
(
msg32
->
hwnd
);
msg
->
message
=
msg32
->
message
;
msg
->
wParam
=
msg32
->
wParam
;
msg
->
lParam
=
msg32
->
lParam
;
...
...
@@ -1216,7 +1216,7 @@ NTSTATUS WINAPI wow64_NtUserCallHwndParam( UINT *args )
}
*
params32
=
UlongToPtr
(
param
);
struct
map_window_points_params
params
;
params
.
hwnd_to
=
Ul
ongToHandle
(
params32
->
hwnd_to
);
params
.
hwnd_to
=
L
ongToHandle
(
params32
->
hwnd_to
);
params
.
points
=
UlongToPtr
(
params32
->
points
);
params
.
count
=
params32
->
count
;
return
NtUserCallHwndParam
(
hwnd
,
(
UINT_PTR
)
&
params
,
code
);
...
...
@@ -1701,7 +1701,7 @@ NTSTATUS WINAPI wow64_NtUserFlashWindowEx( UINT *args )
}
info
.
cbSize
=
sizeof
(
info
);
info
.
hwnd
=
Ul
ongToHandle
(
info32
->
hwnd
);
info
.
hwnd
=
L
ongToHandle
(
info32
->
hwnd
);
info
.
dwFlags
=
info32
->
dwFlags
;
info
.
uCount
=
info32
->
uCount
;
info
.
dwTimeout
=
info32
->
dwTimeout
;
...
...
@@ -2399,13 +2399,13 @@ NTSTATUS WINAPI wow64_NtUserRegisterClassExWOW( UINT *args )
wc
.
lpfnWndProc
=
UlongToPtr
(
wc32
->
lpfnWndProc
);
wc
.
cbClsExtra
=
wc32
->
cbClsExtra
;
wc
.
cbWndExtra
=
wc32
->
cbWndExtra
;
wc
.
hInstance
=
UlongTo
Handle
(
wc32
->
hInstance
);
wc
.
hIcon
=
Ul
ongToHandle
(
wc32
->
hIcon
);
wc
.
hCursor
=
Ul
ongToHandle
(
wc32
->
hCursor
);
wc
.
hInstance
=
UlongTo
Ptr
(
wc32
->
hInstance
);
wc
.
hIcon
=
L
ongToHandle
(
wc32
->
hIcon
);
wc
.
hCursor
=
L
ongToHandle
(
wc32
->
hCursor
);
wc
.
hbrBackground
=
UlongToHandle
(
wc32
->
hbrBackground
);
wc
.
lpszMenuName
=
UlongToPtr
(
wc32
->
lpszMenuName
);
wc
.
lpszClassName
=
UlongToPtr
(
wc32
->
lpszClassName
);
wc
.
hIconSm
=
Ul
ongToHandle
(
wc32
->
hIconSm
);
wc
.
hIconSm
=
L
ongToHandle
(
wc32
->
hIconSm
);
return
NtUserRegisterClassExWOW
(
&
wc
,
unicode_str_32to64
(
&
name
,
name32
),
...
...
@@ -3022,7 +3022,7 @@ NTSTATUS WINAPI wow64_NtUserMsgWaitForMultipleObjectsEx( UINT *args )
set_last_error32
(
ERROR_INVALID_PARAMETER
);
return
WAIT_FAILED
;
}
for
(
i
=
0
;
i
<
count
;
i
++
)
handles
[
i
]
=
Ul
ongToHandle
(
handles32
[
i
]
);
for
(
i
=
0
;
i
<
count
;
i
++
)
handles
[
i
]
=
L
ongToHandle
(
handles32
[
i
]
);
return
NtUserMsgWaitForMultipleObjectsEx
(
count
,
handles
,
timeout
,
mask
,
flags
);
}
...
...
@@ -3855,7 +3855,7 @@ NTSTATUS WINAPI wow64_NtUserThunkedMenuItemInfo( UINT *args )
info
.
fType
=
info32
->
fType
;
info
.
fState
=
info32
->
fState
;
info
.
wID
=
info32
->
wID
;
info
.
hSubMenu
=
Ul
ongToHandle
(
info32
->
hSubMenu
);
info
.
hSubMenu
=
L
ongToHandle
(
info32
->
hSubMenu
);
info
.
hbmpChecked
=
UlongToHandle
(
info32
->
hbmpChecked
);
info
.
hbmpUnchecked
=
UlongToHandle
(
info32
->
hbmpUnchecked
);
info
.
dwItemData
=
info32
->
dwItemData
;
...
...
@@ -3943,7 +3943,7 @@ NTSTATUS WINAPI wow64_NtUserTrackMouseEvent( UINT *args )
info
.
cbSize
=
sizeof
(
info
);
info
.
dwFlags
=
info32
->
dwFlags
;
info
.
hwndTrack
=
Ul
ongToHandle
(
info32
->
hwndTrack
);
info
.
hwndTrack
=
L
ongToHandle
(
info32
->
hwndTrack
);
info
.
dwHoverTime
=
info32
->
dwHoverTime
;
ret
=
NtUserTrackMouseEvent
(
&
info
);
info32
->
dwFlags
=
info
.
dwFlags
;
...
...
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