From: Eric Pouech epouech@codeweavers.com
When run on a wild card:ed parameter without any match.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58027
Signed-off-by: Eric Pouech epouech@codeweavers.com --- programs/cmd/builtins.c | 1 + programs/cmd/tests/test_builtins.bat.exp | 2 +- programs/cmd/tests/test_builtins.cmd.exp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c index 1066ff2ea97..48c8e5e1097 100644 --- a/programs/cmd/builtins.c +++ b/programs/cmd/builtins.c @@ -1363,6 +1363,7 @@ static BOOL WCMD_delete_one (const WCHAR *thisArg) { hff = FindFirstFileW(argCopy, &fd); if (hff == INVALID_HANDLE_VALUE) { handleParm = FALSE; + found = wcschr(argCopy,'*') != NULL || wcschr(argCopy,'?') != NULL; } else { found = TRUE; } diff --git a/programs/cmd/tests/test_builtins.bat.exp b/programs/cmd/tests/test_builtins.bat.exp index d1e4b565e67..608f3d11e15 100644 --- a/programs/cmd/tests/test_builtins.bat.exp +++ b/programs/cmd/tests/test_builtins.bat.exp @@ -94,7 +94,7 @@ FAILURE 1 SUCCESS 0 FAILURE 1 FAILURE 1 -@todo_wine@SUCCESS 0 +SUCCESS 0 --- success/failure for change drive command SUCCESS 666 FAILURE 1 diff --git a/programs/cmd/tests/test_builtins.cmd.exp b/programs/cmd/tests/test_builtins.cmd.exp index 179a989e76f..1a1be21034e 100644 --- a/programs/cmd/tests/test_builtins.cmd.exp +++ b/programs/cmd/tests/test_builtins.cmd.exp @@ -556,7 +556,7 @@ FAILURE 1 SUCCESS 0 FAILURE 1 FAILURE 1 -@todo_wine@SUCCESS 0 +SUCCESS 0 --- success/failure for change drive command SUCCESS 666 FAILURE 1