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
553dd723
Commit
553dd723
authored
Feb 18, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Feb 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small indentation fixes.
parent
99faf747
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+10
-5
No files found.
programs/winemenubuilder/winemenubuilder.c
View file @
553dd723
...
...
@@ -599,8 +599,9 @@ static LPSTR escape(LPCWSTR arg)
len
+=
WideCharToMultiByte
(
CP_UNIXCP
,
0
,
arg
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
narg
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
x
=
narg
;
while
(
*
arg
)
{
x
=
narg
;
while
(
*
arg
)
{
n
=
WideCharToMultiByte
(
CP_UNIXCP
,
0
,
arg
,
1
,
x
,
len
,
NULL
,
NULL
);
x
+=
n
;
len
-=
n
;
...
...
@@ -742,7 +743,7 @@ static BOOL InvokeShellLinker( IShellLinkW *sl, LPCWSTR link )
char
*
escaped_path
=
NULL
,
*
escaped_args
=
NULL
,
*
escaped_description
=
NULL
;
WCHAR
szDescription
[
INFOTIPSIZE
],
szPath
[
MAX_PATH
],
szWorkDir
[
MAX_PATH
];
WCHAR
szArgs
[
INFOTIPSIZE
],
szIconPath
[
MAX_PATH
];
int
iIconId
=
0
,
r
;
int
iIconId
=
0
,
r
=
-
1
;
DWORD
csidl
=
-
1
;
if
(
!
link
)
...
...
@@ -763,7 +764,7 @@ static BOOL InvokeShellLinker( IShellLinkW *sl, LPCWSTR link )
}
szWorkDir
[
0
]
=
0
;
IShellLinkW_GetWorkingDirectory
(
sl
,
szWorkDir
,
MAX_PATH
);
IShellLinkW_GetWorkingDirectory
(
sl
,
szWorkDir
,
MAX_PATH
);
WINE_TRACE
(
"workdir : %s
\n
"
,
wine_dbgstr_w
(
szWorkDir
));
szDescription
[
0
]
=
0
;
...
...
@@ -808,6 +809,7 @@ static BOOL InvokeShellLinker( IShellLinkW *sl, LPCWSTR link )
{
static
const
WCHAR
exeW
[]
=
{
'.'
,
'e'
,
'x'
,
'e'
,
0
};
WCHAR
*
p
;
/* check for .exe extension */
if
(
!
(
p
=
strrchrW
(
szPath
,
'.'
)))
return
FALSE
;
if
(
strchrW
(
p
,
'\\'
)
||
strchrW
(
p
,
'/'
))
return
FALSE
;
...
...
@@ -819,7 +821,10 @@ static BOOL InvokeShellLinker( IShellLinkW *sl, LPCWSTR link )
}
else
{
static
const
WCHAR
startW
[]
=
{
'\\'
,
'c'
,
'o'
,
'm'
,
'm'
,
'a'
,
'n'
,
'd'
,
'\\'
,
's'
,
't'
,
'a'
,
'r'
,
't'
,
'.'
,
'e'
,
'x'
,
'e'
,
0
};
static
const
WCHAR
startW
[]
=
{
'\\'
,
'c'
,
'o'
,
'm'
,
'm'
,
'a'
,
'n'
,
'd'
,
'\\'
,
's'
,
't'
,
'a'
,
'r'
,
't'
,
'.'
,
'e'
,
'x'
,
'e'
,
0
};
/* if there's no path... try run the link itself */
lstrcpynW
(
szArgs
,
link
,
MAX_PATH
);
GetWindowsDirectoryW
(
szPath
,
MAX_PATH
);
...
...
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