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
8952dea4
Commit
8952dea4
authored
Dec 12, 1999
by
Andreas Mohr
Committed by
Alexandre Julliard
Dec 12, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed cmd line length calculation.
parent
3ba4be40
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
module.c
loader/module.c
+14
-14
No files found.
loader/module.c
View file @
8952dea4
...
@@ -499,10 +499,10 @@ WINE_MODREF *MODULE_FindModule(
...
@@ -499,10 +499,10 @@ WINE_MODREF *MODULE_FindModule(
* Returns FALSE if the file is not an executable or if the function fails.
* Returns FALSE if the file is not an executable or if the function fails.
*
*
* To do so it opens the file and reads in the header information
* To do so it opens the file and reads in the header information
* if the extended header information is not presen
d
it will
* if the extended header information is not presen
t
it will
* assume that th
at th
e file is a DOS executable.
* assume that the file is a DOS executable.
* If the extended header information is present it will
* If the extended header information is present it will
* determine if the file is a
n
16 or 32 bit Windows executable
* determine if the file is a 16 or 32 bit Windows executable
* by check the flags in the header.
* by check the flags in the header.
*
*
* Note that .COM and .PIF files are only recognized by their
* Note that .COM and .PIF files are only recognized by their
...
@@ -1050,7 +1050,6 @@ BOOL WINAPI CreateProcessA( LPCSTR lpApplicationName, LPSTR lpCommandLine,
...
@@ -1050,7 +1050,6 @@ BOOL WINAPI CreateProcessA( LPCSTR lpApplicationName, LPSTR lpCommandLine,
char
name
[
256
],
dummy
[
256
];
char
name
[
256
],
dummy
[
256
];
LPCSTR
cmdline
=
NULL
;
LPCSTR
cmdline
=
NULL
;
LPSTR
tidy_cmdline
;
LPSTR
tidy_cmdline
;
int
len
=
0
;
/* Get name and command line */
/* Get name and command line */
...
@@ -1064,19 +1063,18 @@ BOOL WINAPI CreateProcessA( LPCSTR lpApplicationName, LPSTR lpCommandLine,
...
@@ -1064,19 +1063,18 @@ BOOL WINAPI CreateProcessA( LPCSTR lpApplicationName, LPSTR lpCommandLine,
name
[
0
]
=
'\0'
;
name
[
0
]
=
'\0'
;
if
(
lpApplicationName
)
{
if
(
lpApplicationName
)
{
found_file
=
make_lpApplicationName_name
(
lpApplicationName
,
name
,
sizeof
(
name
)
);
found_file
=
make_lpApplicationName_name
(
lpApplicationName
,
name
,
sizeof
(
name
)
);
if
(
lpCommandLine
)
{
if
(
lpCommandLine
)
make_lpCommandLine_name
(
lpCommandLine
,
dummy
,
sizeof
(
dummy
),
&
cmdline
);
make_lpCommandLine_name
(
lpCommandLine
,
dummy
,
sizeof
(
dummy
),
&
cmdline
);
}
else
else
{
cmdline
=
lpApplicationName
;
cmdline
=
lpApplicationName
;
}
}
len
+=
strlen
(
lpApplicationName
);
else
}
{
else
{
if
(
lpCommandLine
)
found_file
=
make_lpCommandLine_name
(
lpCommandLine
,
name
,
sizeof
(
name
),
&
cmdline
);
found_file
=
make_lpCommandLine_name
(
lpCommandLine
,
name
,
sizeof
(
name
),
&
cmdline
);
if
(
lpCommandLine
)
len
=
strlen
(
lpCommandLine
);
}
}
if
(
!
found_file
)
{
if
(
!
found_file
)
{
...
@@ -1085,8 +1083,10 @@ BOOL WINAPI CreateProcessA( LPCSTR lpApplicationName, LPSTR lpCommandLine,
...
@@ -1085,8 +1083,10 @@ BOOL WINAPI CreateProcessA( LPCSTR lpApplicationName, LPSTR lpCommandLine,
return
FALSE
;
return
FALSE
;
}
}
len
+=
strlen
(
name
)
+
2
;
if
(
!
cmdline
)
cmdline
=
""
;
tidy_cmdline
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
tidy_cmdline
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
name
)
+
strlen
(
cmdline
)
+
3
);
TRACE_
(
module
)(
"tidy_cmdline: name '%s'[%d], cmdline '%s'[%d]
\n
"
,
name
,
strlen
(
name
),
cmdline
,
strlen
(
cmdline
));
sprintf
(
tidy_cmdline
,
"
\"
%s
\"
%s"
,
name
,
cmdline
);
sprintf
(
tidy_cmdline
,
"
\"
%s
\"
%s"
,
name
,
cmdline
);
/* Warn if unsupported features are used */
/* Warn if unsupported features are used */
...
...
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