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
03e9fbb5
Commit
03e9fbb5
authored
Nov 14, 2009
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Nov 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemenubuilder: Escape XML special characters in menus.
parent
eb0d2828
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+9
-3
No files found.
programs/winemenubuilder/winemenubuilder.c
View file @
03e9fbb5
...
...
@@ -991,8 +991,12 @@ static BOOL write_menu_file(const char *unix_link, const char *filename)
struct
stat
st
;
name
[
i
]
=
0
;
fprintf
(
tempfile
,
" <Menu>
\n
"
);
fprintf
(
tempfile
,
" <Name>%s%s</Name>
\n
"
,
count
?
""
:
"wine-"
,
name
);
fprintf
(
tempfile
,
" <Directory>%s%s.directory</Directory>
\n
"
,
count
?
""
:
"wine-"
,
name
);
fprintf
(
tempfile
,
" <Name>%s"
,
count
?
""
:
"wine-"
);
write_xml_text
(
tempfile
,
name
);
fprintf
(
tempfile
,
"</Name>
\n
"
);
fprintf
(
tempfile
,
" <Directory>%s"
,
count
?
""
:
"wine-"
);
write_xml_text
(
tempfile
,
name
);
fprintf
(
tempfile
,
".directory</Directory>
\n
"
);
dir_file_name
=
heap_printf
(
"%s/desktop-directories/%s%s.directory"
,
xdg_data_dir
,
count
?
""
:
"wine-"
,
name
);
if
(
dir_file_name
)
...
...
@@ -1009,7 +1013,9 @@ static BOOL write_menu_file(const char *unix_link, const char *filename)
name
[
i
]
=
0
;
fprintf
(
tempfile
,
" <Include>
\n
"
);
fprintf
(
tempfile
,
" <Filename>%s</Filename>
\n
"
,
name
);
fprintf
(
tempfile
,
" <Filename>"
);
write_xml_text
(
tempfile
,
name
);
fprintf
(
tempfile
,
"</Filename>
\n
"
);
fprintf
(
tempfile
,
" </Include>
\n
"
);
for
(
i
=
0
;
i
<
count
;
i
++
)
fprintf
(
tempfile
,
" </Menu>
\n
"
);
...
...
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