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
394203f6
Commit
394203f6
authored
Apr 13, 2000
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 13, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let CreateProcess launch unix executable without a .exe extension.
Fixed arguments passed when creating a unix process.
parent
0045def7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
module.c
loader/module.c
+10
-5
No files found.
loader/module.c
View file @
394203f6
...
...
@@ -680,8 +680,6 @@ static BOOL MODULE_CreateUnixProcess( LPCSTR filename, LPCSTR lpCmdLine,
LPPROCESS_INFORMATION
lpProcessInfo
,
BOOL
useWine
)
{
DOS_FULL_NAME
full_name
;
const
char
*
unixfilename
=
filename
;
const
char
*
argv
[
256
],
**
argptr
;
char
*
cmdline
=
NULL
;
BOOL
iconic
=
FALSE
;
...
...
@@ -694,18 +692,19 @@ static BOOL MODULE_CreateUnixProcess( LPCSTR filename, LPCSTR lpCmdLine,
iconic
=
TRUE
;
/* Build argument list */
argptr
=
argv
;
if
(
!
useWine
)
{
char
*
p
;
const
char
*
unixfilename
=
filename
;
DOS_FULL_NAME
full_name
;
p
=
cmdline
=
strdup
(
lpCmdLine
);
if
(
strchr
(
filename
,
'/'
)
||
strchr
(
filename
,
':'
)
||
strchr
(
filename
,
'\\'
))
{
if
(
DOSFS_GetFullName
(
filename
,
TRUE
,
&
full_name
)
)
unixfilename
=
full_name
.
long_name
;
}
*
argptr
++
=
unixfilename
;
if
(
iconic
)
*
argptr
++
=
"-iconic"
;
while
(
1
)
{
...
...
@@ -714,6 +713,8 @@ static BOOL MODULE_CreateUnixProcess( LPCSTR filename, LPCSTR lpCmdLine,
*
argptr
++
=
p
;
while
(
*
p
&&
*
p
!=
' '
&&
*
p
!=
'\t'
)
p
++
;
}
/* overwrite program name gotten from tidy_cmd */
argv
[
0
]
=
unixfilename
;
}
else
{
...
...
@@ -936,6 +937,9 @@ static BOOL make_lpCommandLine_name( LPCSTR line, LPSTR name, int namelen,
}
TRACE
(
"checking if file exists '%s'
\n
"
,
name
);
retlen
=
SearchPathA
(
NULL
,
name
,
".exe"
,
sizeof
(
buffer
),
buffer
,
&
lastpart
);
if
(
!
retlen
)
retlen
=
SearchPathA
(
NULL
,
name
,
NULL
,
sizeof
(
buffer
),
buffer
,
&
lastpart
);
if
(
retlen
&&
(
retlen
<
sizeof
(
buffer
))
)
break
;
}
while
(
1
);
...
...
@@ -1009,7 +1013,8 @@ static BOOL make_lpApplicationName_name( LPCSTR line, LPSTR name, int namelen)
break
;
/* exit if out of input string */
}
while
(
1
);
if
(
!
SearchPathA
(
NULL
,
buffer
,
".exe"
,
namelen
,
name
,
NULL
))
{
if
(
!
SearchPathA
(
NULL
,
buffer
,
".exe"
,
namelen
,
name
,
NULL
)
&&
!
SearchPathA
(
NULL
,
buffer
,
NULL
,
namelen
,
name
,
NULL
)
)
{
TRACE
(
"file not found '%s'
\n
"
,
buffer
);
return
FALSE
;
}
...
...
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