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
929694c6
Commit
929694c6
authored
Jul 29, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Remove USER_CheckNotLock.
It's no longer interesting. Its remaining callers are not used by locked code, which is restricted to win32u.
parent
421fb1c8
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
30 deletions
+0
-30
user_main.c
dlls/user32/user_main.c
+0
-10
user_private.h
dlls/user32/user_private.h
+0
-1
win.c
dlls/user32/win.c
+0
-8
winproc.c
dlls/user32/winproc.c
+0
-2
sysparams.c
dlls/win32u/sysparams.c
+0
-8
ntuser.h
include/ntuser.h
+0
-1
No files found.
dlls/user32/user_main.c
View file @
929694c6
...
...
@@ -41,16 +41,6 @@ HMODULE user32_module = 0;
extern
void
WDML_NotifyThreadDetach
(
void
);
/***********************************************************************
* USER_CheckNotLock
*
* Make sure that we don't hold the user lock.
*/
void
USER_CheckNotLock
(
void
)
{
NtUserCallOneParam
(
2
,
NtUserLock
);
}
/***********************************************************************
* UserRealizePalette (USER32.@)
...
...
dlls/user32/user_private.h
View file @
929694c6
...
...
@@ -73,7 +73,6 @@ extern BOOL map_wparam_AtoW( UINT message, WPARAM *wparam, enum wm_char_mapping
extern
HPEN
SYSCOLOR_GetPen
(
INT
index
)
DECLSPEC_HIDDEN
;
extern
HBRUSH
SYSCOLOR_Get55AABrush
(
void
)
DECLSPEC_HIDDEN
;
extern
void
SYSPARAMS_Init
(
void
)
DECLSPEC_HIDDEN
;
extern
void
USER_CheckNotLock
(
void
)
DECLSPEC_HIDDEN
;
typedef
LRESULT
(
*
winproc_callback_t
)(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
,
LRESULT
*
result
,
void
*
arg
);
...
...
dlls/user32/win.c
View file @
929694c6
...
...
@@ -1034,8 +1034,6 @@ BOOL WINAPI EnumWindows( WNDENUMPROC lpEnumFunc, LPARAM lParam )
BOOL
ret
=
TRUE
;
int
i
;
USER_CheckNotLock
();
/* We have to build a list of all windows first, to avoid */
/* unpleasant side-effects, for instance if the callback */
/* function changes the Z-order of the windows. */
...
...
@@ -1064,8 +1062,6 @@ BOOL WINAPI EnumThreadWindows( DWORD id, WNDENUMPROC func, LPARAM lParam )
int
i
;
BOOL
ret
=
TRUE
;
USER_CheckNotLock
();
if
(
!
(
list
=
list_window_children
(
0
,
GetDesktopWindow
(),
NULL
,
id
)))
return
TRUE
;
/* Now call the callback function for every window */
...
...
@@ -1085,8 +1081,6 @@ BOOL WINAPI EnumDesktopWindows( HDESK desktop, WNDENUMPROC func, LPARAM lparam )
HWND
*
list
;
int
i
;
USER_CheckNotLock
();
if
(
!
(
list
=
list_window_children
(
desktop
,
0
,
NULL
,
0
)))
return
TRUE
;
for
(
i
=
0
;
list
[
i
];
i
++
)
...
...
@@ -1159,8 +1153,6 @@ BOOL WINAPI EnumChildWindows( HWND parent, WNDENUMPROC func, LPARAM lParam )
HWND
*
list
;
BOOL
ret
;
USER_CheckNotLock
();
if
(
!
(
list
=
WIN_ListChildren
(
parent
)))
return
FALSE
;
ret
=
WIN_EnumChildWindows
(
list
,
func
,
lParam
);
HeapFree
(
GetProcessHeap
(),
0
,
list
);
...
...
dlls/user32/winproc.c
View file @
929694c6
...
...
@@ -147,8 +147,6 @@ static LRESULT call_dialog_proc( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp, LRES
WNDPROC
proc
=
arg
;
LRESULT
ret
;
USER_CheckNotLock
();
hwnd
=
WIN_GetFullHandle
(
hwnd
);
TRACE_
(
relay
)(
"
\1
Call dialog proc %p (hwnd=%p,msg=%s,wp=%08Ix,lp=%08Ix)
\n
"
,
proc
,
hwnd
,
SPY_GetMsgName
(
msg
,
hwnd
),
wp
,
lp
);
...
...
dlls/win32u/sysparams.c
View file @
929694c6
...
...
@@ -5031,14 +5031,6 @@ ULONG_PTR WINAPI NtUserCallOneParam( ULONG_PTR arg, ULONG code )
case
NtUserGetDeskPattern
:
return
get_entry
(
&
entry_DESKPATTERN
,
256
,
(
WCHAR
*
)
arg
);
case
NtUserLock
:
switch
(
arg
)
{
case
0
:
user_lock
();
return
0
;
case
1
:
user_unlock
();
return
0
;
default:
user_check_not_lock
();
return
0
;
}
default:
FIXME
(
"invalid code %u
\n
"
,
code
);
return
0
;
...
...
include/ntuser.h
View file @
929694c6
...
...
@@ -922,7 +922,6 @@ enum
NtUserCallOneParam_SetProcessDefaultLayout
,
/* temporary exports */
NtUserGetDeskPattern
,
NtUserLock
,
};
static
inline
HDWP
NtUserBeginDeferWindowPos
(
INT
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