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
cdf7b1bb
Commit
cdf7b1bb
authored
Jan 18, 2024
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Return result through NtCallbackReturn for the thunk lock callback.
parent
85e351ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
message.c
dlls/user.exe16/message.c
+6
-3
message.c
dlls/win32u/message.c
+5
-2
No files found.
dlls/user.exe16/message.c
View file @
cdf7b1bb
...
...
@@ -22,6 +22,8 @@
#include <stdarg.h>
#include <string.h>
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "wine/winuser16.h"
#include "wownt32.h"
#include "winerror.h"
...
...
@@ -2587,16 +2589,17 @@ static void WINAPI User16CallFreeIcon( ULONG *param, ULONG size )
}
static
DWORD
WINAPI
User16ThunkLock
(
DWORD
*
param
,
ULONG
size
)
static
NTSTATUS
WINAPI
User16ThunkLock
(
void
*
args
,
ULONG
size
)
{
DWORD
*
param
=
args
;
if
(
size
!=
sizeof
(
DWORD
))
{
DWORD
lock
;
ReleaseThunkLock
(
&
lock
);
return
lock
;
return
NtCallbackReturn
(
&
lock
,
sizeof
(
lock
),
STATUS_SUCCESS
)
;
}
RestoreThunkLock
(
*
param
);
return
0
;
return
STATUS_SUCCESS
;
}
...
...
dlls/win32u/message.c
View file @
cdf7b1bb
...
...
@@ -3007,12 +3007,15 @@ static inline LARGE_INTEGER *get_nt_timeout( LARGE_INTEGER *time, DWORD timeout
static
DWORD
wait_message
(
DWORD
count
,
const
HANDLE
*
handles
,
DWORD
timeout
,
DWORD
mask
,
DWORD
flags
)
{
LARGE_INTEGER
time
;
DWORD
ret
,
lock
;
DWORD
ret
,
lock
=
0
;
void
*
ret_ptr
;
ULONG
ret_len
;
if
(
enable_thunk_lock
)
lock
=
KeUserModeCallback
(
NtUserThunkLock
,
NULL
,
0
,
&
ret_ptr
,
&
ret_len
);
{
if
(
!
KeUserModeCallback
(
NtUserThunkLock
,
NULL
,
0
,
&
ret_ptr
,
&
ret_len
)
&&
ret_len
==
sizeof
(
lock
))
lock
=
*
(
DWORD
*
)
ret_ptr
;
}
if
(
user_driver
->
pProcessEvents
(
mask
))
ret
=
count
?
count
-
1
:
0
;
else
if
(
count
)
...
...
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