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
72b27923
Commit
72b27923
authored
Oct 23, 1998
by
Ove Kaaven
Committed by
Alexandre Julliard
Oct 23, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed DOS environment passing.
parent
46597410
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
module.c
loader/dos/module.c
+3
-1
No files found.
loader/dos/module.c
View file @
72b27923
...
...
@@ -131,7 +131,7 @@ static WORD MZ_InitEnvironment( LPDOSTASK lpDosTask, LPCSTR env, LPCSTR name )
if
(
env
)
{
/* get size of environment block */
while
(
env
[
sz
++
])
sz
+=
strlen
(
env
+
sz
);
while
(
env
[
sz
++
])
sz
+=
strlen
(
env
+
sz
)
+
1
;
}
else
sz
++
;
/* allocate it */
envblk
=
DOSMEM_GetBlock
(
lpDosTask
->
hModule
,
sz
+
sizeof
(
WORD
)
+
strlen
(
name
)
+
1
,
&
seg
);
...
...
@@ -364,6 +364,7 @@ HINSTANCE16 MZ_CreateProcess( LPCSTR name, LPCSTR cmdline, LPCSTR env,
LPDOSTASK
lpDosTask
=
NULL
;
/* keep gcc from complaining */
HMODULE16
hModule
;
HINSTANCE16
hInstance
;
PDB32
*
pdb
=
PROCESS_Current
();
TDB
*
pTask
=
(
TDB
*
)
GlobalLock16
(
GetCurrentTask
()
);
NE_MODULE
*
pModule
=
pTask
?
NE_GetPtr
(
pTask
->
hModule
)
:
NULL
;
HFILE16
hFile
;
...
...
@@ -378,6 +379,7 @@ HINSTANCE16 MZ_CreateProcess( LPCSTR name, LPCSTR cmdline, LPCSTR env,
if
((
hFile
=
OpenFile16
(
name
,
&
ofs
,
OF_READ
))
==
HFILE_ERROR16
)
return
2
;
/* File not found */
if
((
!
env
)
&&
pdb
)
env
=
pdb
->
env_db
->
environ
;
if
(
alloc
)
{
if
((
hModule
=
MODULE_CreateDummyModule
(
&
ofs
))
<
32
)
return
hModule
;
...
...
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