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
4f15239c
Commit
4f15239c
authored
Feb 25, 2000
by
Alexandre Julliard
Committed by
Alexandre Julliard
Feb 25, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATOMs are considered unique, so we don't need to check class
pointers in FindWindow.
parent
ed5ac5f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
23 deletions
+1
-23
win.c
windows/win.c
+1
-23
No files found.
windows/win.c
View file @
4f15239c
...
...
@@ -1494,7 +1494,6 @@ static HWND WIN_FindWindow( HWND parent, HWND child, ATOM className,
{
WND
*
pWnd
;
HWND
retvalue
;
CLASS
*
pClass
=
NULL
;
if
(
child
)
{
...
...
@@ -1529,30 +1528,9 @@ static HWND WIN_FindWindow( HWND parent, HWND child, ATOM className,
goto
end
;
}
/* For a child window, all siblings will have the same hInstance, */
/* so we can look for the class once and for all. */
if
(
className
&&
(
pWnd
->
dwStyle
&
WS_CHILD
))
{
if
(
!
(
pClass
=
CLASS_FindClassByAtom
(
className
,
pWnd
->
hInstance
)))
{
retvalue
=
0
;
goto
end
;
}
}
for
(
;
pWnd
;
WIN_UpdateWndPtr
(
&
pWnd
,
pWnd
->
next
))
{
if
(
className
&&
!
(
pWnd
->
dwStyle
&
WS_CHILD
))
{
if
(
!
((
pClass
=
CLASS_FindClassByAtom
(
className
,
pWnd
->
hInstance
))
||
(
pClass
=
CLASS_FindClassByAtom
(
className
,
GetExePtr
(
pWnd
->
hInstance
))))
)
continue
;
/* Skip this window */
}
if
(
pClass
&&
(
pWnd
->
class
!=
pClass
))
if
(
className
&&
(
pWnd
->
class
->
atomName
!=
className
))
continue
;
/* Not the right class */
/* Now check the title */
...
...
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