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
d2344fbb
Commit
d2344fbb
authored
Oct 13, 1999
by
Eric Pouech
Committed by
Alexandre Julliard
Oct 13, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix loading of modules: now search key is module's filename, not
module's name.
parent
89ab9f08
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
builtin.c
if1632/builtin.c
+10
-2
builtin32.c
relay32/builtin32.c
+10
-4
No files found.
if1632/builtin.c
View file @
d2344fbb
...
...
@@ -233,11 +233,19 @@ HMODULE16 BUILTIN_LoadModule( LPCSTR name, BOOL force )
if
((
p
=
strrchr
(
name
,
'\\'
)))
name
=
p
+
1
;
lstrcpynA
(
dllname
,
name
,
sizeof
(
dllname
)
);
if
((
p
=
strrchr
(
dllname
,
'.'
)))
*
p
=
'\0'
;
p
=
strrchr
(
dllname
,
'.'
);
if
(
!
p
)
strcat
(
dllname
,
".dll"
);
for
(
table
=
BuiltinDLLs
;
table
->
descr
;
table
++
)
if
(
!
lstrcmpiA
(
table
->
descr
->
name
,
dllname
))
break
;
{
NE_MODULE
*
pModule
=
(
NE_MODULE
*
)
table
->
descr
->
module_start
;
OFSTRUCT
*
pOfs
=
(
OFSTRUCT
*
)((
LPBYTE
)
pModule
+
pModule
->
fileinfo
);
if
(
!
lstrcmpiA
(
pOfs
->
szPathName
,
dllname
))
break
;
}
if
(
!
table
->
descr
)
return
(
HMODULE16
)
2
;
if
((
table
->
flags
&
DLL_FLAG_NOT_USED
)
&&
!
force
)
return
(
HMODULE16
)
2
;
return
BUILTIN_DoLoadModule16
(
table
->
descr
);
...
...
relay32/builtin32.c
View file @
d2344fbb
...
...
@@ -418,19 +418,25 @@ HMODULE BUILTIN32_LoadImage( LPCSTR name, OFSTRUCT *ofs)
if
((
p
=
strrchr
(
name
,
'\\'
)))
name
=
p
+
1
;
lstrcpynA
(
dllname
,
name
,
sizeof
(
dllname
)
);
if
((
p
=
strrchr
(
dllname
,
'.'
)))
*
p
=
'\0'
;
p
=
strrchr
(
dllname
,
'.'
);
if
(
!
p
)
strcat
(
dllname
,
".dll"
);
for
(
table
=
BuiltinDLLs
;
table
->
descr
;
table
++
)
if
(
!
lstrcmpiA
(
table
->
descr
->
name
,
dllname
))
break
;
{
if
(
!
lstrcmpiA
(
table
->
descr
->
filename
,
dllname
))
break
;
}
if
(
!
table
->
descr
)
return
0
;
if
(
(
table
->
flags
&
BI32_INSTANTIATED
)
&&
(
table
->
flags
&
BI32_DANGER
)
)
{
ERR_
(
module
)(
"Attemp to instantiate built-in dll '%s' twice in the same address-space. Expect trouble!
\n
"
,
table
->
descr
->
name
);
table
->
descr
->
name
);
}
s
printf
(
ofs
->
szPathName
,
"%s.DLL"
,
table
->
descr
->
name
);
s
trcpy
(
ofs
->
szPathName
,
table
->
descr
->
file
name
);
if
(
!
table
->
hModule
)
table
->
hModule
=
BUILTIN32_DoLoadImage
(
table
);
...
...
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