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
80e695a6
Commit
80e695a6
authored
Dec 19, 2005
by
Rein Klazes
Committed by
Alexandre Julliard
Dec 19, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wcmd: Increase maximum length of commands.
Increase maximum length of commands to 8192 bytes as on Windows XP. Add needed braces to a multi line "if" statement.
parent
a229618e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
batch.c
programs/wcmd/batch.c
+10
-8
No files found.
programs/wcmd/batch.c
View file @
80e695a6
...
...
@@ -27,7 +27,8 @@ extern char quals[MAX_PATH], param1[MAX_PATH], param2[MAX_PATH];
extern
BATCH_CONTEXT
*
context
;
extern
DWORD
errorlevel
;
#define MAXSTRING 1024
/* msdn specified max for Win XP */
#define MAXSTRING 8192
/****************************************************************************
* WCMD_batch
...
...
@@ -93,13 +94,14 @@ BATCH_CONTEXT *prev_context;
*/
while
(
WCMD_fgets
(
string
,
sizeof
(
string
),
h
))
{
if
(
strlen
(
string
)
==
MAXSTRING
-
1
)
WCMD_output_asis
(
"Line in Batch processing possible truncated. Using:
\n
"
);
WCMD_output_asis
(
string
);
WCMD_output_asis
(
"
\n
"
);
if
(
string
[
0
]
!=
':'
)
{
/* Skip over labels */
WCMD_batch_command
(
string
);
}
if
(
strlen
(
string
)
==
MAXSTRING
-
1
)
{
WCMD_output_asis
(
"Line in Batch processing possibly truncated. Using:
\n
"
);
WCMD_output_asis
(
string
);
WCMD_output_asis
(
"
\n
"
);
}
if
(
string
[
0
]
!=
':'
)
{
/* Skip over labels */
WCMD_batch_command
(
string
);
}
}
CloseHandle
(
h
);
...
...
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