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
1f01dd12
Commit
1f01dd12
authored
Jan 02, 2024
by
Zsolt Vadasz
Committed by
Alexandre Julliard
Jan 05, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Compare environment variable names case insensitively.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=56134
parent
a79db19f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
environ.c
dlls/msvcrt/environ.c
+2
-2
No files found.
dlls/msvcrt/environ.c
View file @
1f01dd12
...
@@ -125,7 +125,7 @@ static int env_get_index(const char *name)
...
@@ -125,7 +125,7 @@ static int env_get_index(const char *name)
len
=
strlen
(
name
);
len
=
strlen
(
name
);
for
(
i
=
0
;
MSVCRT__environ
[
i
];
i
++
)
for
(
i
=
0
;
MSVCRT__environ
[
i
];
i
++
)
{
{
if
(
!
strncmp
(
name
,
MSVCRT__environ
[
i
],
len
)
&&
MSVCRT__environ
[
i
][
len
]
==
'='
)
if
(
!
strn
i
cmp
(
name
,
MSVCRT__environ
[
i
],
len
)
&&
MSVCRT__environ
[
i
][
len
]
==
'='
)
return
i
;
return
i
;
}
}
return
i
;
return
i
;
...
@@ -138,7 +138,7 @@ static int wenv_get_index(const wchar_t *name)
...
@@ -138,7 +138,7 @@ static int wenv_get_index(const wchar_t *name)
len
=
wcslen
(
name
);
len
=
wcslen
(
name
);
for
(
i
=
0
;
MSVCRT__wenviron
[
i
];
i
++
)
for
(
i
=
0
;
MSVCRT__wenviron
[
i
];
i
++
)
{
{
if
(
!
wcsncmp
(
name
,
MSVCRT__wenviron
[
i
],
len
)
&&
MSVCRT__wenviron
[
i
][
len
]
==
'='
)
if
(
!
wcsn
i
cmp
(
name
,
MSVCRT__wenviron
[
i
],
len
)
&&
MSVCRT__wenviron
[
i
][
len
]
==
'='
)
return
i
;
return
i
;
}
}
return
i
;
return
i
;
...
...
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