mirror of
https://github.com/reactos/wine.git
synced 2025-02-01 01:32:34 +00:00
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…
x
Reference in New Issue
Block a user