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
1cf04bd7
Commit
1cf04bd7
authored
Mar 30, 2004
by
Mike McCormack
Committed by
Alexandre Julliard
Mar 30, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix builtin NE module refcounting of 32bit parent.
parent
114c9077
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
26 deletions
+23
-26
ne_module.c
dlls/kernel/ne_module.c
+23
-26
No files found.
dlls/kernel/ne_module.c
View file @
1cf04bd7
...
...
@@ -1167,42 +1167,39 @@ static HINSTANCE16 MODULE_LoadModule16( LPCSTR libname, BOOL implicit, BOOL lib_
if
(
strlen
(
basename
)
<
sizeof
(
dllname
)
-
4
)
{
int
file_exists
;
strcpy
(
dllname
,
basename
);
p
=
strrchr
(
dllname
,
'.'
);
if
(
!
p
)
strcat
(
dllname
,
".dll"
);
for
(
p
=
dllname
;
*
p
;
p
++
)
if
(
*
p
>=
'A'
&&
*
p
<=
'Z'
)
*
p
+=
32
;
if
(
!
(
descr
=
find_dll_descr
(
dllname
))
)
if
(
wine_dll_get_owner
(
dllname
,
owner
,
sizeof
(
owner
),
&
file_exists
)
==
-
1
)
{
int
file_exists
;
if
(
wine_dll_get_owner
(
dllname
,
owner
,
sizeof
(
owner
),
&
file_exists
)
==
-
1
)
{
if
(
file_exists
)
return
21
;
/* it may be a Win32 module then */
}
else
/* found 32-bit owner, try to load it */
if
(
file_exists
)
return
21
;
/* it may be a Win32 module then */
}
else
/* found 32-bit owner, try to load it */
{
HMODULE
mod32
=
LoadLibraryA
(
owner
);
if
(
mod32
)
{
HMODULE
mod32
=
LoadLibraryA
(
owner
);
if
(
mod32
)
if
(
!
(
descr
=
find_dll_descr
(
dllname
)))
FreeLibrary
(
mod32
);
/* loading the 32-bit library can have the side effect of loading the module */
/* if so, simply incr the ref count and return the module */
if
((
hModule
=
GetModuleHandle16
(
libname
)))
{
if
(
!
(
descr
=
find_dll_descr
(
dllname
)))
FreeLibrary
(
mod32
);
/* loading the 32-bit library can have the side effect of loading the module */
/* if so, simply incr the ref count and return the module */
if
((
hModule
=
GetModuleHandle16
(
libname
)))
{
TRACE
(
"module %s already loaded by owner
\n
"
,
libname
);
pModule
=
NE_GetPtr
(
hModule
);
if
(
pModule
)
pModule
->
count
++
;
return
hModule
;
}
}
else
{
/* it's probably disabled by the load order config */
WARN
(
"couldn't load owner %s for 16-bit dll %s
\n
"
,
owner
,
dllname
);
return
ERROR_FILE_NOT_FOUND
;
TRACE
(
"module %s already loaded by owner
\n
"
,
libname
);
pModule
=
NE_GetPtr
(
hModule
);
if
(
pModule
)
pModule
->
count
++
;
return
hModule
;
}
}
else
{
/* it's probably disabled by the load order config */
WARN
(
"couldn't load owner %s for 16-bit dll %s
\n
"
,
owner
,
dllname
);
return
ERROR_FILE_NOT_FOUND
;
}
}
}
...
...
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