http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d820437
)
Small optimization in WINPOS_GetWinOffset.
author
Alexandre Julliard
<julliard@winehq.org>
Mon, 17 Jan 2005 13:50:00 +0000
(13:50 +0000)
committer
Alexandre Julliard
<julliard@winehq.org>
Mon, 17 Jan 2005 13:50:00 +0000
(13:50 +0000)
windows/winpos.c
patch
|
blob
|
blame
|
history
diff --git
a/windows/winpos.c
b/windows/winpos.c
index 8a7770d45d41a82f425a91c7155008a9407a94b4..937bc9ed75c175b861209f4b37857b4f70079af5 100644
(file)
--- a/
windows/winpos.c
+++ b/
windows/winpos.c
@@
-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 )))
{