Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3b07c851
Commit
3b07c851
authored
Jun 12, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Jun 14, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Avoid accessing a window in global window list after it has been freed.
parent
2d20a1aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
macro.c
programs/winhlp32/macro.c
+10
-2
No files found.
programs/winhlp32/macro.c
View file @
3b07c851
...
...
@@ -281,24 +281,32 @@ static void CALLBACK MACRO_CheckItem(LPCSTR str)
static
void
CALLBACK
MACRO_CloseSecondarys
(
void
)
{
WINHELP_WINDOW
*
win
;
WINHELP_WINDOW
*
next
;
WINE_TRACE
(
"()
\n
"
);
for
(
win
=
Globals
.
win_list
;
win
;
win
=
win
->
next
)
for
(
win
=
Globals
.
win_list
;
win
;
win
=
next
)
{
next
=
win
->
next
;
if
(
lstrcmpi
(
win
->
info
->
name
,
"main"
))
WINHELP_ReleaseWindow
(
win
);
}
}
static
void
CALLBACK
MACRO_CloseWindow
(
LPCSTR
lpszWindow
)
{
WINHELP_WINDOW
*
win
;
WINHELP_WINDOW
*
next
;
WINE_TRACE
(
"(
\"
%s
\"
)
\n
"
,
lpszWindow
);
if
(
!
lpszWindow
||
!
lpszWindow
[
0
])
lpszWindow
=
"main"
;
for
(
win
=
Globals
.
win_list
;
win
;
win
=
win
->
next
)
for
(
win
=
Globals
.
win_list
;
win
;
win
=
next
)
{
next
=
win
->
next
;
if
(
!
lstrcmpi
(
win
->
info
->
name
,
lpszWindow
))
WINHELP_ReleaseWindow
(
win
);
}
}
static
void
CALLBACK
MACRO_Compare
(
LPCSTR
str
)
...
...
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