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
a33bad1e
Commit
a33bad1e
authored
Sep 11, 2011
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Sep 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: Allow a batch file to delete itself.
parent
cb63445b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
batch.c
programs/cmd/batch.c
+1
-1
test_builtins.cmd.exp
programs/cmd/tests/test_builtins.cmd.exp
+1
-1
No files found.
programs/cmd/batch.c
View file @
a33bad1e
...
...
@@ -51,7 +51,7 @@ void WCMD_batch (WCHAR *file, WCHAR *command, int called, WCHAR *startLabel, HAN
BATCH_CONTEXT
*
prev_context
;
if
(
startLabel
==
NULL
)
{
h
=
CreateFileW
(
file
,
GENERIC_READ
,
FILE_SHARE_READ
,
h
=
CreateFileW
(
file
,
GENERIC_READ
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
|
FILE_SHARE_DELETE
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
if
(
h
==
INVALID_HANDLE_VALUE
)
{
SetLastError
(
ERROR_FILE_NOT_FOUND
);
...
...
programs/cmd/tests/test_builtins.cmd.exp
View file @
a33bad1e
...
...
@@ -725,7 +725,7 @@ foo ''
non-builtin dir
------------ Testing cmd invocation ------------
... a batch file can delete itself ...
@todo_wine@
file correctly deleted
file correctly deleted
... a batch file can alter itself ...
@todo_wine@bar
------------ Testing setlocal/endlocal ------------
...
...
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