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
d3bf447f
Commit
d3bf447f
authored
Jun 25, 2009
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Jun 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemenubuilder: Generate new menus in the right directory.
parent
7f13b126
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+5
-5
No files found.
programs/winemenubuilder/winemenubuilder.c
View file @
d3bf447f
...
...
@@ -906,10 +906,10 @@ static BOOL write_menu_file(const char *unix_link, const char *filename)
while
(
1
)
{
tempfilename
=
tempnam
(
xdg_config_dir
,
"_wine"
);
tempfilename
=
heap_printf
(
"%s/wine-menu-XXXXXX"
,
xdg_config_dir
);
if
(
tempfilename
)
{
int
tempfd
=
open
(
tempfilename
,
O_EXCL
|
O_CREAT
|
O_WRONLY
,
0666
);
int
tempfd
=
mkstemps
(
tempfilename
,
0
);
if
(
tempfd
>=
0
)
{
tempfile
=
fdopen
(
tempfd
,
"w"
);
...
...
@@ -920,10 +920,10 @@ static BOOL write_menu_file(const char *unix_link, const char *filename)
}
else
if
(
errno
==
EEXIST
)
{
free
(
tempfilename
);
HeapFree
(
GetProcessHeap
(),
0
,
tempfilename
);
continue
;
}
free
(
tempfilename
);
HeapFree
(
GetProcessHeap
(),
0
,
tempfilename
);
}
return
FALSE
;
}
...
...
@@ -981,7 +981,7 @@ end:
ret
=
(
rename
(
tempfilename
,
menuPath
)
==
0
);
if
(
!
ret
&&
tempfilename
)
remove
(
tempfilename
);
free
(
tempfilename
);
HeapFree
(
GetProcessHeap
(),
0
,
tempfilename
);
if
(
ret
)
{
HKEY
hkey
=
open_menus_reg_key
();
...
...
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