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
694219d4
Commit
694219d4
authored
Mar 15, 2009
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Mar 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Fix number of returned arguments from CommandLineToArgvW with empty string.
parent
ae5770d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
shell32_main.c
dlls/shell32/shell32_main.c
+1
-1
shlexec.c
dlls/shell32/tests/shlexec.c
+5
-0
No files found.
dlls/shell32/shell32_main.c
View file @
694219d4
...
...
@@ -111,7 +111,7 @@ LPWSTR* WINAPI CommandLineToArgvW(LPCWSTR lpCmdline, int* numargs)
}
argv
[
0
]
=
(
LPWSTR
)(
argv
+
1
);
if
(
numargs
)
*
numargs
=
2
;
*
numargs
=
1
;
return
argv
;
}
...
...
dlls/shell32/tests/shlexec.c
View file @
694219d4
...
...
@@ -1616,6 +1616,7 @@ static void test_commandline(void)
static
const
WCHAR
fmt3
[]
=
{
'%'
,
's'
,
'='
,
'%'
,
's'
,
' '
,
'%'
,
's'
,
'='
,
'\"'
,
'%'
,
's'
,
'\"'
,
0
};
static
const
WCHAR
fmt4
[]
=
{
'\"'
,
'%'
,
's'
,
'\"'
,
' '
,
'\"'
,
'%'
,
's'
,
' '
,
'%'
,
's'
,
'\"'
,
' '
,
'%'
,
's'
,
0
};
static
const
WCHAR
fmt5
[]
=
{
'\\'
,
'\"'
,
'%'
,
's'
,
'\"'
,
' '
,
'%'
,
's'
,
'='
,
'\"'
,
'%'
,
's'
,
'\\'
,
'\"'
,
' '
,
'\"'
,
'%'
,
's'
,
'\\'
,
'\"'
,
0
};
static
const
WCHAR
fmt6
[]
=
{
0
};
static
const
WCHAR
chkfmt1
[]
=
{
'%'
,
's'
,
'='
,
'%'
,
's'
,
0
};
static
const
WCHAR
chkfmt2
[]
=
{
'%'
,
's'
,
' '
,
'%'
,
's'
,
0
};
...
...
@@ -1670,6 +1671,10 @@ static void test_commandline(void)
todo_wine
ok
(
lstrcmpW
(
args
[
0
],
cmdline
)
==
0
,
"arg0 is not as expected
\n
"
);
wsprintfW
(
cmdline
,
chkfmt4
,
two
,
three
,
four
);
todo_wine
ok
(
lstrcmpW
(
args
[
1
],
cmdline
)
==
0
,
"arg1 is not as expected
\n
"
);
wsprintfW
(
cmdline
,
fmt6
);
args
=
CommandLineToArgvW
(
cmdline
,
&
numargs
);
ok
(
numargs
==
1
,
"expected 1 args, got %i
\n
"
,
numargs
);
}
START_TEST
(
shlexec
)
...
...
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