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
9be151c2
Commit
9be151c2
authored
Jun 16, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
Jun 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Conform to native in SHELL_ArgifyW for unquoted %1 in registry keys.
parent
e0940226
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
26 deletions
+5
-26
shlexec.c
dlls/shell32/shlexec.c
+4
-25
shlexec.c
dlls/shell32/tests/shlexec.c
+1
-1
No files found.
dlls/shell32/shlexec.c
View file @
9be151c2
...
...
@@ -156,32 +156,11 @@ 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) or unless the arg is already
enclosed in double quotation marks */
if
((
res
==
out
||
*
(
fmt
+
1
)
!=
'"'
)
&&
*
cmd
!=
'"'
)
used
+=
strlenW
(
cmd
);
if
(
used
<
len
)
{
used
++
;
if
(
used
<
len
)
*
res
++
=
'"'
;
used
+=
strlenW
(
cmd
);
if
(
used
<
len
)
{
strcpyW
(
res
,
cmd
);
res
+=
strlenW
(
cmd
);
}
used
++
;
if
(
used
<
len
)
*
res
++
=
'"'
;
}
else
{
used
+=
strlenW
(
cmd
);
if
(
used
<
len
)
{
strcpyW
(
res
,
cmd
);
res
+=
strlenW
(
cmd
);
}
strcpyW
(
res
,
cmd
);
res
+=
strlenW
(
cmd
);
}
}
found_p1
=
TRUE
;
...
...
dlls/shell32/tests/shlexec.c
View file @
9be151c2
...
...
@@ -1064,7 +1064,7 @@ static dde_tests_t dde_tests[] =
/* Test unquoted %1 in command and ddeexec
* (test filename has space) */
{
"%1"
,
"[open(%1)]"
,
"shlexec"
,
"dde"
,
NULL
,
2
,
"[open(%s)]"
,
0x
a
,
33
},
{
"%1"
,
"[open(%1)]"
,
"shlexec"
,
"dde"
,
NULL
,
2
,
"[open(%s)]"
,
0x
0
,
33
},
/* Test ifexec precedence over ddeexec */
{
""
,
"[open(
\"
%1
\"
)]"
,
"shlexec"
,
"dde"
,
"[ifexec(
\"
%1
\"
)]"
,
FALSE
,
"[ifexec(
\"
%s
\"
)]"
,
0x0
,
33
},
...
...
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