mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +00:00
Optimize GetDesktopWindow() to read the information from the shared heap
svn path=/trunk/; revision=30609
This commit is contained in:
@@ -529,7 +529,22 @@ EndDeferWindowPos(HDWP hWinPosInfo)
|
||||
HWND STDCALL
|
||||
GetDesktopWindow(VOID)
|
||||
{
|
||||
return NtUserGetDesktopWindow();
|
||||
PWINDOW Wnd;
|
||||
HWND Ret = NULL;
|
||||
|
||||
_SEH_TRY
|
||||
{
|
||||
Wnd = GetThreadDesktopWnd();
|
||||
if (Wnd != NULL)
|
||||
Ret = UserHMGetHandle(Wnd);
|
||||
}
|
||||
_SEH_HANDLE
|
||||
{
|
||||
/* Do nothing */
|
||||
}
|
||||
_SEH_END;
|
||||
|
||||
return Ret;
|
||||
}
|
||||
|
||||
|
||||
@@ -1096,7 +1111,7 @@ GetWindowModuleFileNameW(HWND hwnd,
|
||||
*/
|
||||
BOOL STDCALL
|
||||
GetWindowPlacement(HWND hWnd,
|
||||
WINDOWPLACEMENT *lpwndpl)
|
||||
WINDOWPLACEMENT *lpwndpl)
|
||||
{
|
||||
return (BOOL)NtUserGetWindowPlacement(hWnd, lpwndpl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user