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
b2aae66f
Commit
b2aae66f
authored
Apr 25, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hhctrl.ocx: Don't insert content item that could not be merged.
parent
ce3fa8e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
18 deletions
+26
-18
content.c
dlls/hhctrl.ocx/content.c
+26
-18
No files found.
dlls/hhctrl.ocx/content.c
View file @
b2aae66f
...
...
@@ -32,6 +32,24 @@ typedef enum {
INSERT_CHILD
}
insert_type_t
;
static
void
free_content_item
(
ContentItem
*
item
)
{
ContentItem
*
next
;
while
(
item
)
{
next
=
item
->
next
;
free_content_item
(
item
->
child
);
hhctrl_free
(
item
->
name
);
hhctrl_free
(
item
->
local
);
hhctrl_free
(
item
->
merge
.
chm_file
);
hhctrl_free
(
item
->
merge
.
chm_index
);
item
=
next
;
}
}
typedef
struct
{
char
*
buf
;
int
size
;
...
...
@@ -207,6 +225,9 @@ static ContentItem *insert_item(ContentItem *item, ContentItem *new_item, insert
if
(
!
item
)
return
new_item
;
if
(
!
new_item
)
return
item
;
switch
(
insert_type
)
{
case
INSERT_NEXT
:
item
->
next
=
new_item
;
...
...
@@ -265,6 +286,11 @@ static ContentItem *parse_sitemap_object(HHInfo *info, stream_t *stream, Content
}
else
{
WARN
(
"Could not get %s::%s stream
\n
"
,
debugstr_w
(
item
->
merge
.
chm_file
),
debugstr_w
(
item
->
merge
.
chm_file
));
if
(
!
item
->
name
)
{
free_content_item
(
item
);
item
=
NULL
;
}
}
}
...
...
@@ -411,24 +437,6 @@ void InitContent(HHInfo *info)
fill_content_tree
(
info
->
tabs
[
TAB_CONTENTS
].
hwnd
,
NULL
,
info
->
content
);
}
static
void
free_content_item
(
ContentItem
*
item
)
{
ContentItem
*
next
;
while
(
item
)
{
next
=
item
->
next
;
free_content_item
(
item
->
child
);
hhctrl_free
(
item
->
name
);
hhctrl_free
(
item
->
local
);
hhctrl_free
(
item
->
merge
.
chm_file
);
hhctrl_free
(
item
->
merge
.
chm_index
);
item
=
next
;
}
}
void
ReleaseContent
(
HHInfo
*
info
)
{
free_content_item
(
info
->
content
);
...
...
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