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
94822425
Commit
94822425
authored
Sep 22, 1999
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed memory allocation bug.
parent
99b68252
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
module.c
loader/module.c
+8
-9
No files found.
loader/module.c
View file @
94822425
...
...
@@ -722,6 +722,7 @@ static BOOL MODULE_CreateUnixProcess( LPCSTR filename, LPCSTR lpCmdLine,
DOS_FULL_NAME
full_name
;
const
char
*
unixfilename
=
filename
;
const
char
*
argv
[
256
],
**
argptr
;
char
*
p
=
NULL
;
BOOL
iconic
=
FALSE
;
/* Get Unix file name and iconic flag */
...
...
@@ -736,14 +737,12 @@ static BOOL MODULE_CreateUnixProcess( LPCSTR filename, LPCSTR lpCmdLine,
argptr
=
argv
;
if
(
!
useWine
)
{
char
*
p
=
strdup
(
lpCmdLine
);
if
(
strchr
(
filename
,
'/'
)
||
strchr
(
filename
,
':'
)
||
strchr
(
filename
,
'\\'
)
)
{
if
(
DOSFS_GetFullName
(
filename
,
TRUE
,
&
full_name
)
)
unixfilename
=
full_name
.
long_name
;
}
p
=
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
)
...
...
@@ -753,7 +752,6 @@ static BOOL MODULE_CreateUnixProcess( LPCSTR filename, LPCSTR lpCmdLine,
*
argptr
++
=
p
;
while
(
*
p
&&
*
p
!=
' '
&&
*
p
!=
'\t'
)
p
++
;
}
free
(
p
);
}
else
{
...
...
@@ -784,6 +782,7 @@ static BOOL MODULE_CreateUnixProcess( LPCSTR filename, LPCSTR lpCmdLine,
memset
(
lpProcessInfo
,
'\0'
,
sizeof
(
*
lpProcessInfo
)
);
lpProcessInfo
->
hProcess
=
INVALID_HANDLE_VALUE
;
lpProcessInfo
->
hThread
=
INVALID_HANDLE_VALUE
;
if
(
p
)
free
(
p
);
SetLastError
(
ERROR_SUCCESS
);
return
TRUE
;
...
...
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