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
373973c9
Commit
373973c9
authored
Apr 07, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
krnl386: Use stricmp() instead of _strnicmp(..., -1).
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
341feeb1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
ne_module.c
dlls/krnl386.exe16/ne_module.c
+2
-2
relay.c
dlls/krnl386.exe16/relay.c
+2
-2
resource.c
dlls/krnl386.exe16/resource.c
+2
-2
No files found.
dlls/krnl386.exe16/ne_module.c
View file @
373973c9
...
@@ -1462,7 +1462,7 @@ HMODULE16 WINAPI GetModuleHandle16( LPCSTR name )
...
@@ -1462,7 +1462,7 @@ HMODULE16 WINAPI GetModuleHandle16( LPCSTR name )
loadedfn
--
;
loadedfn
--
;
}
}
/* case insensitive compare ... */
/* case insensitive compare ... */
if
(
!
_strnicmp
(
loadedfn
,
s
,
-
1
))
if
(
!
stricmp
(
loadedfn
,
s
))
return
hModule
;
return
hModule
;
}
}
return
0
;
return
0
;
...
@@ -1782,7 +1782,7 @@ static HMODULE16 NE_GetModuleByFilename( LPCSTR name )
...
@@ -1782,7 +1782,7 @@ static HMODULE16 NE_GetModuleByFilename( LPCSTR name )
loadedfn
--
;
loadedfn
--
;
}
}
/* case insensitive compare ... */
/* case insensitive compare ... */
if
(
!
_strnicmp
(
loadedfn
,
s
,
-
1
))
if
(
!
stricmp
(
loadedfn
,
s
))
return
hModule
;
return
hModule
;
}
}
/* If basename (without ext) matches the module name of a module:
/* If basename (without ext) matches the module name of a module:
...
...
dlls/krnl386.exe16/relay.c
View file @
373973c9
...
@@ -179,11 +179,11 @@ static BOOL check_list( const char *module, int ordinal, const char *func, const
...
@@ -179,11 +179,11 @@ static BOOL check_list( const char *module, int ordinal, const char *func, const
if
(
_strnicmp
(
module
,
*
list
,
len
-
1
)
||
module
[
len
])
continue
;
if
(
_strnicmp
(
module
,
*
list
,
len
-
1
)
||
module
[
len
])
continue
;
if
(
p
[
1
]
==
'*'
&&
!
p
[
2
])
return
TRUE
;
if
(
p
[
1
]
==
'*'
&&
!
p
[
2
])
return
TRUE
;
if
(
!
strcmp
(
ord_str
,
p
+
1
))
return
TRUE
;
if
(
!
strcmp
(
ord_str
,
p
+
1
))
return
TRUE
;
if
(
func
&&
!
_strnicmp
(
func
,
p
+
1
,
-
1
))
return
TRUE
;
if
(
func
&&
!
stricmp
(
func
,
p
+
1
))
return
TRUE
;
}
}
else
/* function only */
else
/* function only */
{
{
if
(
func
&&
!
_strnicmp
(
func
,
*
list
,
-
1
))
return
TRUE
;
if
(
func
&&
!
stricmp
(
func
,
*
list
))
return
TRUE
;
}
}
}
}
return
FALSE
;
return
FALSE
;
...
...
dlls/krnl386.exe16/resource.c
View file @
373973c9
...
@@ -209,7 +209,7 @@ static DWORD NE_FindNameTableId( NE_MODULE *pModule, LPCSTR typeId, LPCSTR resId
...
@@ -209,7 +209,7 @@ static DWORD NE_FindNameTableId( NE_MODULE *pModule, LPCSTR typeId, LPCSTR resId
if
(
p
[
1
]
&
0x8000
)
if
(
p
[
1
]
&
0x8000
)
{
{
if
(
!
HIWORD
(
typeId
))
continue
;
if
(
!
HIWORD
(
typeId
))
continue
;
if
(
_strnicmp
(
typeId
,
(
char
*
)(
p
+
3
),
-
1
))
continue
;
if
(
stricmp
(
typeId
,
(
char
*
)(
p
+
3
)
))
continue
;
}
}
else
if
(
HIWORD
(
typeId
)
||
(((
DWORD
)
typeId
&
~
0x8000
)
!=
p
[
1
]))
else
if
(
HIWORD
(
typeId
)
||
(((
DWORD
)
typeId
&
~
0x8000
)
!=
p
[
1
]))
continue
;
continue
;
...
@@ -219,7 +219,7 @@ static DWORD NE_FindNameTableId( NE_MODULE *pModule, LPCSTR typeId, LPCSTR resId
...
@@ -219,7 +219,7 @@ static DWORD NE_FindNameTableId( NE_MODULE *pModule, LPCSTR typeId, LPCSTR resId
if
(
p
[
2
]
&
0x8000
)
if
(
p
[
2
]
&
0x8000
)
{
{
if
(
!
HIWORD
(
resId
))
continue
;
if
(
!
HIWORD
(
resId
))
continue
;
if
(
_strnicmp
(
resId
,
(
char
*
)(
p
+
3
)
+
strlen
((
char
*
)(
p
+
3
))
+
1
,
-
1
))
continue
;
if
(
stricmp
(
resId
,
(
char
*
)(
p
+
3
)
+
strlen
((
char
*
)(
p
+
3
))
+
1
))
continue
;
}
}
else
if
(
HIWORD
(
resId
)
||
((
LOWORD
(
resId
)
&
~
0x8000
)
!=
p
[
2
]))
else
if
(
HIWORD
(
resId
)
||
((
LOWORD
(
resId
)
&
~
0x8000
)
!=
p
[
2
]))
...
...
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