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
f89e1158
Commit
f89e1158
authored
Aug 13, 2004
by
Markus Amsler
Committed by
Alexandre Julliard
Aug 13, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make environment variables uppercase.
parent
be2c020c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
module.c
dlls/winedos/module.c
+11
-0
No files found.
dlls/winedos/module.c
View file @
f89e1158
...
...
@@ -158,6 +158,7 @@ static void MZ_FillPSP( LPVOID lpPSP, LPCSTR cmdtail, int length )
static
WORD
MZ_InitEnvironment
(
LPCSTR
env
,
LPCSTR
name
)
{
unsigned
sz
=
0
;
unsigned
i
=
0
;
WORD
seg
;
LPSTR
envblk
;
...
...
@@ -171,6 +172,16 @@ static WORD MZ_InitEnvironment( LPCSTR env, LPCSTR name )
if
(
env
)
{
memcpy
(
envblk
,
env
,
sz
);
}
else
envblk
[
0
]
=
0
;
/* DOS environment variables are uppercase */
while
(
envblk
[
i
]){
while
(
envblk
[
i
]
!=
'='
){
if
(
envblk
[
i
]
>=
'a'
&&
envblk
[
i
]
<=
'z'
){
envblk
[
i
]
-=
32
;
}
i
++
;
}
i
+=
strlen
(
envblk
+
i
)
+
1
;
}
/* DOS 3.x: the block contains 1 additional string */
*
(
WORD
*
)(
envblk
+
sz
)
=
1
;
/* being the program name itself */
...
...
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