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
0f6efae8
Commit
0f6efae8
authored
Mar 28, 1999
by
Jess Haas
Committed by
Alexandre Julliard
Mar 28, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed GetModuleHandle16.
parent
dbfdca8b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
module.c
loader/ne/module.c
+6
-13
No files found.
loader/ne/module.c
View file @
0f6efae8
...
@@ -1225,19 +1225,12 @@ DWORD WINAPI WIN16_GetModuleHandle( SEGPTR name )
...
@@ -1225,19 +1225,12 @@ DWORD WINAPI WIN16_GetModuleHandle( SEGPTR name )
HMODULE16
WINAPI
GetModuleHandle16
(
LPCSTR
name
)
HMODULE16
WINAPI
GetModuleHandle16
(
LPCSTR
name
)
{
{
HMODULE16
hModule
=
hFirstModule
;
HMODULE16
hModule
=
hFirstModule
;
LPCSTR
filename
,
dotptr
;
LPCSTR
dotptr
;
BYTE
len
,
*
name_table
;
BYTE
len
,
*
name_table
;
if
(
!
(
filename
=
strrchr
(
name
,
'\\'
)))
if
((
dotptr
=
strrchr
(
name
,
'.'
))
!=
NULL
)
filename
=
name
;
len
=
(
BYTE
)(
dotptr
-
name
);
else
else
len
=
strlen
(
name
);
{
FIXME
(
module
,
"illegal usage of GetModuleHandle16
\n
"
);
filename
++
;
}
if
((
dotptr
=
strrchr
(
filename
,
'.'
))
!=
NULL
)
len
=
(
BYTE
)(
dotptr
-
filename
);
else
len
=
strlen
(
filename
);
while
(
hModule
)
while
(
hModule
)
{
{
...
@@ -1250,11 +1243,11 @@ HMODULE16 WINAPI GetModuleHandle16( LPCSTR name )
...
@@ -1250,11 +1243,11 @@ HMODULE16 WINAPI GetModuleHandle16( LPCSTR name )
if (!(modulename = strrchr( modulepath, '\\' )))
if (!(modulename = strrchr( modulepath, '\\' )))
modulename = modulepath;
modulename = modulepath;
else modulename++;
else modulename++;
if (!lstrcmpiA( modulename,
file
name )) return hModule;
if (!lstrcmpiA( modulename, name )) return hModule;
*/
*/
name_table
=
(
BYTE
*
)
pModule
+
pModule
->
name_table
;
name_table
=
(
BYTE
*
)
pModule
+
pModule
->
name_table
;
if
((
*
name_table
==
len
)
&&
!
lstrncmpiA
(
file
name
,
name_table
+
1
,
len
))
if
((
*
name_table
==
len
)
&&
!
lstrncmpiA
(
name
,
name_table
+
1
,
len
))
return
hModule
;
return
hModule
;
hModule
=
pModule
->
next
;
hModule
=
pModule
->
next
;
}
}
...
...
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