mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[WIN32K]
- Don't use exclusive lock when shared is enough - Don't declare functions in source code svn path=/trunk/; revision=54198
This commit is contained in:
parent
c9134c871b
commit
51a410c228
2 changed files with 3 additions and 9 deletions
|
@ -68,9 +68,8 @@ VOID FASTCALL IntCleanupCurIcons(struct _EPROCESS *Process, PPROCESSINFO Win32Pr
|
|||
BOOL UserDrawIconEx(HDC hDc, INT xLeft, INT yTop, PCURICON_OBJECT pIcon, INT cxWidth,
|
||||
INT cyHeight, UINT istepIfAniCur, HBRUSH hbrFlickerFreeDraw, UINT diFlags);
|
||||
PCURICON_OBJECT FASTCALL UserGetCurIconObject(HCURSOR hCurIcon);
|
||||
|
||||
BOOL UserSetCursorPos( INT x, INT y, DWORD flags, ULONG_PTR dwExtraInfo, BOOL Hook);
|
||||
|
||||
BOOL APIENTRY UserClipCursor(RECTL *prcl);
|
||||
PSYSTEM_CURSORINFO IntGetSysCursorInfo(VOID);
|
||||
|
||||
#define IntReleaseCurIconObject(CurIconObj) \
|
||||
|
|
|
@ -11,7 +11,6 @@ DBG_DEFAULT_CHANNEL(UserDisplay);
|
|||
|
||||
BOOL gbBaseVideo = 0;
|
||||
|
||||
static const PWCHAR KEY_ROOT = L"";
|
||||
static const PWCHAR KEY_VIDEO = L"\\Registry\\Machine\\HARDWARE\\DEVICEMAP\\VIDEO";
|
||||
|
||||
VOID
|
||||
|
@ -384,7 +383,7 @@ NtUserEnumDisplayDevices(
|
|||
}
|
||||
|
||||
/* Acquire global USER lock */
|
||||
UserEnterExclusive();
|
||||
UserEnterShared();
|
||||
|
||||
/* Call the internal function */
|
||||
Status = UserEnumDisplayDevices(pustrDevice, iDevNum, &dispdev, dwFlags);
|
||||
|
@ -551,7 +550,6 @@ UserEnumRegistryDisplaySettings(
|
|||
return Status ;
|
||||
}
|
||||
|
||||
|
||||
NTSTATUS
|
||||
APIENTRY
|
||||
NtUserEnumDisplaySettings(
|
||||
|
@ -593,7 +591,7 @@ NtUserEnumDisplaySettings(
|
|||
}
|
||||
|
||||
/* Acquire global USER lock */
|
||||
UserEnterExclusive();
|
||||
UserEnterShared();
|
||||
|
||||
if (iModeNum == ENUM_REGISTRY_SETTINGS)
|
||||
{
|
||||
|
@ -647,9 +645,6 @@ NtUserEnumDisplaySettings(
|
|||
return Status;
|
||||
}
|
||||
|
||||
BOOL APIENTRY UserClipCursor(RECTL *prcl);
|
||||
VOID APIENTRY UserRedrawDesktop();
|
||||
|
||||
LONG
|
||||
APIENTRY
|
||||
UserChangeDisplaySettings(
|
||||
|
|
Loading…
Reference in a new issue