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
4e5b1168
Commit
4e5b1168
authored
Mar 13, 1999
by
Peter Ganten
Committed by
Alexandre Julliard
Mar 13, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CreateProcess to handle lpCommandline better.
parent
aa546ef6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
module.c
loader/module.c
+10
-12
No files found.
loader/module.c
View file @
4e5b1168
...
...
@@ -810,8 +810,11 @@ BOOL WINAPI CreateProcessA( LPCSTR lpApplicationName, LPSTR lpCommandLine,
HFILE
hFile
;
OFSTRUCT
ofs
;
DWORD
type
;
char
name
[
256
],
cmdline
[
256
];
char
name
[
256
];
LPCSTR
cmdline
;
#if 0
LPCSTR p = NULL;
#endif
/* Get name and command line */
...
...
@@ -822,26 +825,21 @@ BOOL WINAPI CreateProcessA( LPCSTR lpApplicationName, LPSTR lpCommandLine,
}
name
[
0
]
=
'\0'
;
cmdline
[
0
]
=
'\0'
;
if
(
lpApplicationName
)
{
get_executable_name
(
lpApplicationName
,
name
,
sizeof
(
name
),
NULL
,
FALSE
);
strcpy
(
cmdline
,
name
);
#if 0
p = strrchr(name, '.');
if (p >= name+strlen(name)-4) /* FIXME */
*p = '\0';
#endif
}
if
(
lpCommandLine
)
if
(
strlen
(
name
))
{
get_executable_name
(
lpCommandLine
,
cmdline
,
sizeof
(
cmdline
),
&
p
,
TRUE
);
strcat
(
cmdline
,
p
);
}
else
{
get_executable_name
(
lpCommandLine
,
name
,
sizeof
(
name
),
&
p
,
TRUE
);
strcpy
(
cmdline
,
name
);
strcat
(
cmdline
,
p
);
}
else
{
get_executable_name
(
lpCommandLine
,
name
,
sizeof
(
name
),
NULL
,
FALSE
);
}
if
(
!
lpCommandLine
)
cmdline
=
lpApplicationName
;
else
cmdline
=
lpCommandLine
;
if
(
!
strchr
(
name
,
'\\'
)
&&
!
strchr
(
name
,
'.'
))
strcat
(
name
,
".exe"
);
...
...
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