Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
be89816e
Commit
be89816e
authored
Dec 25, 1999
by
Huw D M Davies
Committed by
Alexandre Julliard
Dec 25, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid infinite loop in WINPOS_FindIconPos if the width of the parent
client area is less than the icon spacing.
parent
c64ec4a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
winpos.c
windows/winpos.c
+4
-2
No files found.
windows/winpos.c
View file @
be89816e
...
...
@@ -136,7 +136,8 @@ static POINT16 WINPOS_FindIconPos( WND* wndPtr, POINT16 pt )
y
=
rectParent
.
bottom
;
for
(;;)
{
for
(
x
=
rectParent
.
left
;
x
<=
rectParent
.
right
-
xspacing
;
x
+=
xspacing
)
x
=
rectParent
.
left
;
do
{
/* Check if another icon already occupies this spot */
WND
*
childPtr
=
WIN_LockWndPtr
(
wndPtr
->
parent
->
child
);
...
...
@@ -159,7 +160,8 @@ static POINT16 WINPOS_FindIconPos( WND* wndPtr, POINT16 pt )
pt
.
y
=
y
-
(
yspacing
+
GetSystemMetrics
(
SM_CYICON
))
/
2
;
return
pt
;
}
}
x
+=
xspacing
;
}
while
(
x
<=
rectParent
.
right
-
xspacing
);
y
-=
yspacing
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment