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
6a2a2ebc
Commit
6a2a2ebc
authored
Oct 02, 2000
by
Andreas Mohr
Committed by
Alexandre Julliard
Oct 02, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure that we skip tasks with missing hInstance.
parent
d23f506a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
task.c
loader/task.c
+9
-2
No files found.
loader/task.c
View file @
6a2a2ebc
...
@@ -1566,8 +1566,15 @@ BOOL16 WINAPI TaskNext16( TASKENTRY *lpte )
...
@@ -1566,8 +1566,15 @@ BOOL16 WINAPI TaskNext16( TASKENTRY *lpte )
TRACE_
(
toolhelp
)(
"(%p): task=%04x
\n
"
,
lpte
,
lpte
->
hNext
);
TRACE_
(
toolhelp
)(
"(%p): task=%04x
\n
"
,
lpte
,
lpte
->
hNext
);
if
(
!
lpte
->
hNext
)
return
FALSE
;
if
(
!
lpte
->
hNext
)
return
FALSE
;
pTask
=
(
TDB
*
)
GlobalLock16
(
lpte
->
hNext
);
if
(
!
pTask
||
pTask
->
magic
!=
TDB_MAGIC
)
return
FALSE
;
/* make sure that task and hInstance are valid (skip initial Wine task !) */
while
(
1
)
{
pTask
=
(
TDB
*
)
GlobalLock16
(
lpte
->
hNext
);
if
(
!
pTask
||
pTask
->
magic
!=
TDB_MAGIC
)
return
FALSE
;
if
(
pTask
->
hInstance
)
break
;
lpte
->
hNext
=
pTask
->
hNext
;
}
pInstData
=
(
INSTANCEDATA
*
)
PTR_SEG_OFF_TO_LIN
(
GlobalHandleToSel16
(
pTask
->
hInstance
),
0
);
pInstData
=
(
INSTANCEDATA
*
)
PTR_SEG_OFF_TO_LIN
(
GlobalHandleToSel16
(
pTask
->
hInstance
),
0
);
lpte
->
hTask
=
lpte
->
hNext
;
lpte
->
hTask
=
lpte
->
hNext
;
lpte
->
hTaskParent
=
pTask
->
hParent
;
lpte
->
hTaskParent
=
pTask
->
hParent
;
...
...
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