Small optimization in WINPOS_GetWinOffset.
This commit is contained in:
parent
d820437b19
commit
149b6e38c9
|
@ -478,7 +478,7 @@ static void WINPOS_GetWinOffset( HWND hwndFrom, HWND hwndTo, POINT *offset )
|
|||
{
|
||||
HWND hwnd = hwndFrom;
|
||||
|
||||
while (hwnd)
|
||||
while (hwnd && hwnd != GetDesktopWindow())
|
||||
{
|
||||
if (hwnd == hwndTo) return;
|
||||
if (!(wndPtr = WIN_GetPtr( hwnd )))
|
||||
|
@ -499,7 +499,7 @@ static void WINPOS_GetWinOffset( HWND hwndFrom, HWND hwndTo, POINT *offset )
|
|||
{
|
||||
HWND hwnd = hwndTo;
|
||||
|
||||
while (hwnd)
|
||||
while (hwnd && hwnd != GetDesktopWindow())
|
||||
{
|
||||
if (!(wndPtr = WIN_GetPtr( hwnd )))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue