user32: Remove USER_CheckNotLock.

It's no longer interesting. Its remaining callers are not used by locked code, which is restricted to win32u.
This commit is contained in:
Jacek Caban 2022-07-29 19:55:35 +02:00 committed by Alexandre Julliard
parent 421fb1c804
commit 929694c66d
6 changed files with 0 additions and 30 deletions

View file

@ -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.@)

View file

@ -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 );

View file

@ -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 );

View file

@ -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)( "\1Call dialog proc %p (hwnd=%p,msg=%s,wp=%08Ix,lp=%08Ix)\n",
proc, hwnd, SPY_GetMsgName(msg, hwnd), wp, lp );

View file

@ -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;

View file

@ -922,7 +922,6 @@ enum
NtUserCallOneParam_SetProcessDefaultLayout,
/* temporary exports */
NtUserGetDeskPattern,
NtUserLock,
};
static inline HDWP NtUserBeginDeferWindowPos( INT count )