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
b17ed7e0
Commit
b17ed7e0
authored
Jul 24, 2002
by
Uwe Bonnes
Committed by
Alexandre Julliard
Jul 24, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WCMD_batch: increase possible line length and warn if still too small.
parent
94324019
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
batch.c
programs/wcmd/batch.c
+5
-2
No files found.
programs/wcmd/batch.c
View file @
b17ed7e0
...
...
@@ -30,6 +30,7 @@ extern char quals[MAX_PATH], param1[MAX_PATH], param2[MAX_PATH];
extern
BATCH_CONTEXT
*
context
;
extern
DWORD
errorlevel
;
#define MAXSTRING 1024
/****************************************************************************
* WCMD_batch
...
...
@@ -47,7 +48,7 @@ extern DWORD errorlevel;
void
WCMD_batch
(
char
*
file
,
char
*
command
,
int
called
)
{
HANDLE
h
;
char
string
[
MAX
_PATH
];
char
string
[
MAX
STRING
];
BATCH_CONTEXT
*
prev_context
;
strcpy
(
string
,
file
);
...
...
@@ -77,6 +78,8 @@ BATCH_CONTEXT *prev_context;
*/
while
(
WCMD_fgets
(
string
,
sizeof
(
string
),
h
))
{
if
(
strlen
(
string
)
==
MAXSTRING
-
1
)
WCMD_output
(
"Line in Batch processing possible truncated. Using:
\n
%s
\n
"
,
string
);
if
(
string
[
0
]
!=
':'
)
{
/* Skip over labels */
WCMD_batch_command
(
string
);
}
...
...
@@ -108,7 +111,7 @@ BATCH_CONTEXT *prev_context;
void
WCMD_batch_command
(
char
*
line
)
{
DWORD
status
;
char
cmd1
[
1024
],
cmd2
[
1024
];
char
cmd1
[
MAXSTRING
],
cmd2
[
MAXSTRING
];
char
*
p
,
*
s
,
*
t
;
int
i
;
...
...
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