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
e745b380
Commit
e745b380
authored
Sep 21, 2004
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for the CSIDL_COMMON_* locations.
parent
bc371a83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+11
-4
No files found.
programs/winemenubuilder/winemenubuilder.c
View file @
e745b380
...
...
@@ -57,6 +57,11 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
menubuilder
);
#define in_desktop_dir(csidl) ((csidl)==CSIDL_DESKTOPDIRECTORY || \
(csidl)==CSIDL_COMMON_DESKTOPDIRECTORY)
#define in_startmenu(csidl) ((csidl)==CSIDL_STARTMENU || \
(csidl)==CSIDL_COMMON_STARTMENU)
/* link file formats */
#include "pshpack1.h"
...
...
@@ -663,7 +668,9 @@ static BOOL GetLinkLocation( LPCWSTR linkfile, DWORD *ofs, DWORD *loc )
WCHAR
filename
[
MAX_PATH
],
buffer
[
MAX_PATH
];
DWORD
len
,
i
,
r
,
filelen
;
const
DWORD
locations
[]
=
{
CSIDL_STARTUP
,
CSIDL_DESKTOPDIRECTORY
,
CSIDL_STARTMENU
};
CSIDL_STARTUP
,
CSIDL_DESKTOPDIRECTORY
,
CSIDL_STARTMENU
,
CSIDL_COMMON_STARTUP
,
CSIDL_COMMON_DESKTOPDIRECTORY
,
CSIDL_COMMON_STARTMENU
};
WINE_TRACE
(
"%s
\n
"
,
wine_dbgstr_w
(
linkfile
));
filelen
=
GetFullPathNameW
(
linkfile
,
MAX_PATH
,
filename
,
NULL
);
...
...
@@ -717,7 +724,7 @@ static BOOL InvokeShellLinker( IShellLinkA *sl, LPCWSTR link )
WINE_WARN
(
"Unknown link location '%s'. Ignoring.
\n
"
,
wine_dbgstr_w
(
link
));
return
TRUE
;
}
if
(
(
csidl
!=
CSIDL_DESKTOPDIRECTORY
)
&&
(
csidl
!=
CSIDL_STARTMENU
)
)
if
(
!
in_desktop_dir
(
csidl
)
&&
!
in_startmenu
(
csidl
)
)
{
WINE_WARN
(
"Not under desktop or start menu. Ignoring.
\n
"
);
return
TRUE
;
...
...
@@ -799,8 +806,8 @@ static BOOL InvokeShellLinker( IShellLinkA *sl, LPCWSTR link )
escaped_args
=
escape
(
szArgs
);
r
=
fork_and_wait
(
"wineshelllink"
,
link_name
,
escaped_path
,
(
csidl
==
CSIDL_DESKTOPDIRECTORY
),
escaped_args
,
icon_name
,
work_dir
?
work_dir
:
""
,
szDescription
);
in_desktop_dir
(
csidl
),
escaped_args
,
icon_name
,
work_dir
?
work_dir
:
""
,
szDescription
);
HeapFree
(
GetProcessHeap
(),
0
,
icon_name
);
HeapFree
(
GetProcessHeap
(),
0
,
work_dir
);
...
...
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