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
9b399da4
Commit
9b399da4
authored
Oct 21, 2004
by
Ge van Geldorp
Committed by
Alexandre Julliard
Oct 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Don't double-quote an already double-quoted argument.
- Properly increment the fmt pointer.
parent
447d5ed0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
shlexec.c
dlls/shell32/shlexec.c
+9
-3
No files found.
dlls/shell32/shlexec.c
View file @
9b399da4
...
...
@@ -142,8 +142,10 @@ static BOOL SHELL_ArgifyW(WCHAR* out, int len, const WCHAR* fmt, const WCHAR* lp
else
cmd
=
lpFile
;
/* Add double quotation marks unless we already have them (e.g.: "file://%1" %* for exefile) */
if
(
res
==
out
||
*
(
fmt
+
1
)
!=
'"'
)
/* Add double quotation marks unless we already have them
(e.g.: "file://%1" %* for exefile) or unless the arg is already
enclosed in double quotation marks */
if
((
res
==
out
||
*
(
fmt
+
1
)
!=
'"'
)
&&
*
cmd
!=
'"'
)
{
*
res
++
=
'"'
;
strcpyW
(
res
,
cmd
);
...
...
@@ -207,10 +209,14 @@ static BOOL SHELL_ArgifyW(WCHAR* out, int len, const WCHAR* fmt, const WCHAR* lp
strcpyW
(
res
,
tmpEnvBuff
);
res
+=
strlenW
(
res
);
}
fmt
++
;
done
=
TRUE
;
break
;
}
/* Don't skip past terminator (catch a single '%' at the end) */
if
(
*
fmt
!=
'\0'
)
{
fmt
++
;
}
}
else
*
res
++
=
*
fmt
++
;
...
...
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