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
42cd970e
Commit
42cd970e
authored
Apr 17, 2007
by
Ken Thomases
Committed by
Alexandre Julliard
Apr 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32/tests: Test that quoting file path prevents masking at space.
parent
49c8388a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
shlexec.c
dlls/shell32/tests/shlexec.c
+12
-1
No files found.
dlls/shell32/tests/shlexec.c
View file @
42cd970e
...
@@ -521,6 +521,8 @@ static filename_tests_t filename_tests[]=
...
@@ -521,6 +521,8 @@ static filename_tests_t filename_tests[]=
/* Test file masked due to space */
/* Test file masked due to space */
{
NULL
,
"%s
\\
masked file.shlexec"
,
0x1
,
33
},
{
NULL
,
"%s
\\
masked file.shlexec"
,
0x1
,
33
},
/* Test if quoting prevents the masking */
{
NULL
,
"%s
\\
masked file.shlexec"
,
0x40
,
33
},
{
NULL
,
NULL
,
0
}
{
NULL
,
NULL
,
0
}
};
};
...
@@ -556,7 +558,16 @@ static void test_filename(void)
...
@@ -556,7 +558,16 @@ static void test_filename(void)
c
++
;
c
++
;
}
}
}
}
rc
=
shell_execute
(
test
->
verb
,
filename
,
NULL
,
NULL
);
if
((
test
->
todo
&
0x40
)
==
0
)
{
rc
=
shell_execute
(
test
->
verb
,
filename
,
NULL
,
NULL
);
}
else
{
char
quoted
[
MAX_PATH
+
2
];
sprintf
(
quoted
,
"
\"
%s
\"
"
,
filename
);
rc
=
shell_execute
(
test
->
verb
,
quoted
,
NULL
,
NULL
);
}
if
(
rc
>
32
)
if
(
rc
>
32
)
rc
=
33
;
rc
=
33
;
if
((
test
->
todo
&
0x1
)
==
0
)
if
((
test
->
todo
&
0x1
)
==
0
)
...
...
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