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
435623df
Commit
435623df
authored
Jun 18, 2004
by
Chris Morgan
Committed by
Alexandre Julliard
Jun 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hardcode "wineshelllink" in winemenubuilder, remove it from the config
file.
parent
ca8e3139
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
31 deletions
+3
-31
config
documentation/samples/config
+0
-1
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+3
-30
No files found.
documentation/samples/config
View file @
435623df
...
...
@@ -14,7 +14,6 @@ WINE REGISTRY Version 2
"GraphicsDriver" = "x11drv"
;"ShowDirSymlinks" = "1"
;"ShowDotFiles" = "1"
"ShellLinker" = "wineshelllink"
# [wineconf]
...
...
programs/winemenubuilder/winemenubuilder.c
View file @
435623df
...
...
@@ -618,27 +618,6 @@ static int fork_and_wait( char *linker, char *link_name, char *path,
return
retcode
;
}
/* write the name of the ShellLinker into the buffer provided */
static
BOOL
GetLinkerName
(
LPSTR
szLinker
,
DWORD
max
)
{
LONG
r
;
DWORD
type
=
0
;
HKEY
hkey
;
szLinker
[
0
]
=
0
;
r
=
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Wine
\\
Wine
\\
Config
\\
Wine"
,
0
,
KEY_ALL_ACCESS
,
&
hkey
);
if
(
r
)
return
FALSE
;
r
=
RegQueryValueExA
(
hkey
,
"ShellLinker"
,
0
,
&
type
,
szLinker
,
&
max
);
RegCloseKey
(
hkey
);
if
(
r
||
(
type
!=
REG_SZ
)
)
return
FALSE
;
return
TRUE
;
}
static
char
*
cleanup_link
(
LPCWSTR
link
)
{
char
*
p
,
*
link_name
;
...
...
@@ -711,7 +690,7 @@ static BOOL InvokeShellLinker( IShellLinkA *sl, LPCWSTR link )
char
*
link_name
,
*
p
,
*
icon_name
=
NULL
,
*
work_dir
=
NULL
;
char
*
escaped_path
=
NULL
,
*
escaped_args
=
NULL
;
CHAR
szDescription
[
MAX_PATH
],
szPath
[
MAX_PATH
],
szWorkDir
[
MAX_PATH
];
CHAR
szArgs
[
MAX_PATH
],
szIconPath
[
MAX_PATH
]
,
szLinker
[
MAX_PATH
]
;
CHAR
szArgs
[
MAX_PATH
],
szIconPath
[
MAX_PATH
];
int
iIconId
=
0
,
r
;
DWORD
ofs
=
0
,
csidl
=
-
1
;
...
...
@@ -721,12 +700,6 @@ static BOOL InvokeShellLinker( IShellLinkA *sl, LPCWSTR link )
return
FALSE
;
}
if
(
!
GetLinkerName
(
szLinker
,
MAX_PATH
)
)
{
WINE_ERR
(
"Can't find the name of the linker script
\n
"
);
return
FALSE
;
}
if
(
!
GetLinkLocation
(
link
,
&
ofs
,
&
csidl
)
)
{
WINE_WARN
(
"Unknown link location (%08lx). Ignoring
\n
"
,
csidl
);
...
...
@@ -811,7 +784,7 @@ static BOOL InvokeShellLinker( IShellLinkA *sl, LPCWSTR link )
if
(
szArgs
)
escaped_args
=
escape
(
szArgs
);
r
=
fork_and_wait
(
szLinker
,
link_name
,
escaped_path
,
r
=
fork_and_wait
(
"wineshelllink"
,
link_name
,
escaped_path
,
(
csidl
==
CSIDL_DESKTOPDIRECTORY
),
escaped_args
,
icon_name
,
work_dir
?
work_dir
:
""
,
szDescription
);
...
...
@@ -825,7 +798,7 @@ static BOOL InvokeShellLinker( IShellLinkA *sl, LPCWSTR link )
if
(
r
)
{
WINE_ERR
(
"failed to fork and exec
%s
\n
"
,
szLinker
);
WINE_ERR
(
"failed to fork and exec
wineshelllink
\n
"
);
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