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
59b69a72
Commit
59b69a72
authored
Jan 06, 2008
by
Dan Kegel
Committed by
Alexandre Julliard
Jan 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemenubuilder: Expand short paths, else menu items aren't created for CSLU Toolkit.
parent
66960ba4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+11
-2
No files found.
programs/winemenubuilder/winemenubuilder.c
View file @
59b69a72
...
...
@@ -695,7 +695,7 @@ static char *relative_path( LPCWSTR link, LPCWSTR locn )
*/
static
BOOL
GetLinkLocation
(
LPCWSTR
linkfile
,
DWORD
*
loc
,
char
**
relative
)
{
WCHAR
filename
[
MAX_PATH
],
buffer
[
MAX_PATH
];
WCHAR
filename
[
MAX_PATH
],
shortfilename
[
MAX_PATH
],
buffer
[
MAX_PATH
];
DWORD
len
,
i
,
r
,
filelen
;
const
DWORD
locations
[]
=
{
CSIDL_STARTUP
,
CSIDL_DESKTOPDIRECTORY
,
CSIDL_STARTMENU
,
...
...
@@ -703,7 +703,16 @@ static BOOL GetLinkLocation( LPCWSTR linkfile, DWORD *loc, char **relative )
CSIDL_COMMON_STARTMENU
};
WINE_TRACE
(
"%s
\n
"
,
wine_dbgstr_w
(
linkfile
));
filelen
=
GetFullPathNameW
(
linkfile
,
MAX_PATH
,
filename
,
NULL
);
filelen
=
GetFullPathNameW
(
linkfile
,
MAX_PATH
,
shortfilename
,
NULL
);
if
(
filelen
==
0
||
filelen
>
MAX_PATH
)
return
FALSE
;
WINE_TRACE
(
"%s
\n
"
,
wine_dbgstr_w
(
shortfilename
));
/* the CSLU Toolkit uses a short path name when creating .lnk files;
* expand or our hardcoded list won't match.
*/
filelen
=
GetLongPathNameW
(
shortfilename
,
filename
,
MAX_PATH
);
if
(
filelen
==
0
||
filelen
>
MAX_PATH
)
return
FALSE
;
...
...
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