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
13a04cdf
Commit
13a04cdf
authored
May 15, 2022
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Use syscall interface for NtUserGetRawInputBuffer.
parent
5b7a862c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
9 deletions
+21
-9
gdiobj.c
dlls/win32u/gdiobj.c
+0
-1
syscall.c
dlls/win32u/syscall.c
+1
-0
win32u.spec
dlls/win32u/win32u.spec
+1
-1
win32u_private.h
dlls/win32u/win32u_private.h
+0
-1
wrappers.c
dlls/win32u/wrappers.c
+0
-6
syscall.h
dlls/wow64win/syscall.h
+1
-0
user.c
dlls/wow64win/user.c
+18
-0
No files found.
dlls/win32u/gdiobj.c
View file @
13a04cdf
...
...
@@ -1184,7 +1184,6 @@ static struct unix_funcs unix_funcs =
NtUserGetMessage
,
NtUserGetPriorityClipboardFormat
,
NtUserGetQueueStatus
,
NtUserGetRawInputBuffer
,
NtUserGetSystemMenu
,
NtUserGetUpdateRect
,
NtUserGetUpdateRgn
,
...
...
dlls/win32u/syscall.c
View file @
13a04cdf
...
...
@@ -145,6 +145,7 @@ static void * const syscalls[] =
NtUserGetProcessDpiAwarenessContext
,
NtUserGetProcessWindowStation
,
NtUserGetProp
,
NtUserGetRawInputBuffer
,
NtUserGetRawInputData
,
NtUserGetSystemDpiForProcess
,
NtUserGetThreadDesktop
,
...
...
dlls/win32u/win32u.spec
View file @
13a04cdf
...
...
@@ -983,7 +983,7 @@
@ stdcall -syscall NtUserGetProp(long wstr)
@ stdcall NtUserGetQueueStatus(long)
@ stub NtUserGetQueueStatusReadonly
@ stdcall NtUserGetRawInputBuffer(ptr ptr long)
@ stdcall
-syscall
NtUserGetRawInputBuffer(ptr ptr long)
@ stdcall -syscall NtUserGetRawInputData(ptr long ptr ptr long)
@ stub NtUserGetRawInputDeviceInfo
@ stub NtUserGetRawInputDeviceList
...
...
dlls/win32u/win32u_private.h
View file @
13a04cdf
...
...
@@ -248,7 +248,6 @@ struct unix_funcs
BOOL
(
WINAPI
*
pNtUserGetMessage
)(
MSG
*
msg
,
HWND
hwnd
,
UINT
first
,
UINT
last
);
INT
(
WINAPI
*
pNtUserGetPriorityClipboardFormat
)(
UINT
*
list
,
INT
count
);
DWORD
(
WINAPI
*
pNtUserGetQueueStatus
)(
UINT
flags
);
UINT
(
WINAPI
*
pNtUserGetRawInputBuffer
)(
RAWINPUT
*
data
,
UINT
*
data_size
,
UINT
header_size
);
HMENU
(
WINAPI
*
pNtUserGetSystemMenu
)(
HWND
hwnd
,
BOOL
revert
);
BOOL
(
WINAPI
*
pNtUserGetUpdateRect
)(
HWND
hwnd
,
RECT
*
rect
,
BOOL
erase
);
INT
(
WINAPI
*
pNtUserGetUpdateRgn
)(
HWND
hwnd
,
HRGN
hrgn
,
BOOL
erase
);
...
...
dlls/win32u/wrappers.c
View file @
13a04cdf
...
...
@@ -1048,12 +1048,6 @@ DWORD WINAPI NtUserGetQueueStatus( UINT flags )
return
unix_funcs
->
pNtUserGetQueueStatus
(
flags
);
}
UINT
WINAPI
DECLSPEC_HOTPATCH
NtUserGetRawInputBuffer
(
RAWINPUT
*
data
,
UINT
*
data_size
,
UINT
header_size
)
{
if
(
!
unix_funcs
)
return
~
0u
;
return
unix_funcs
->
pNtUserGetRawInputBuffer
(
data
,
data_size
,
header_size
);
}
BOOL
WINAPI
NtUserGetUpdatedClipboardFormats
(
UINT
*
formats
,
UINT
size
,
UINT
*
out_size
)
{
if
(
!
unix_funcs
)
return
FALSE
;
...
...
dlls/wow64win/syscall.h
View file @
13a04cdf
...
...
@@ -132,6 +132,7 @@
SYSCALL_ENTRY( NtUserGetProcessDpiAwarenessContext ) \
SYSCALL_ENTRY( NtUserGetProcessWindowStation ) \
SYSCALL_ENTRY( NtUserGetProp ) \
SYSCALL_ENTRY( NtUserGetRawInputBuffer ) \
SYSCALL_ENTRY( NtUserGetRawInputData ) \
SYSCALL_ENTRY( NtUserGetSystemDpiForProcess ) \
SYSCALL_ENTRY( NtUserGetThreadDesktop ) \
...
...
dlls/wow64win/user.c
View file @
13a04cdf
...
...
@@ -957,3 +957,21 @@ NTSTATUS WINAPI wow64_NtUserGetRawInputData( UINT *args )
return
~
0u
;
}
}
NTSTATUS
WINAPI
wow64_NtUserGetRawInputBuffer
(
UINT
*
args
)
{
RAWINPUT
*
data
=
get_ptr
(
&
args
);
UINT
*
data_size
=
get_ptr
(
&
args
);
UINT
header_size
=
get_ulong
(
&
args
);
if
(
header_size
!=
sizeof
(
RAWINPUTHEADER32
))
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
~
0u
;
}
/* RAWINPUT has different sizes on 32-bit and 64-bit, but no translation is
* done. The function actually returns different structures depending on
* whether it's operating under WoW64 or not. */
return
NtUserGetRawInputBuffer
(
data
,
data_size
,
sizeof
(
RAWINPUTHEADER
)
);
}
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