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
a3e80956
Commit
a3e80956
authored
Dec 28, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Handle the case where the 16-bit module is already loaded also for separated dlls.
parent
1cee3235
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
ne_module.c
dlls/kernel32/ne_module.c
+10
-10
No files found.
dlls/kernel32/ne_module.c
View file @
a3e80956
...
...
@@ -1119,16 +1119,6 @@ static HINSTANCE16 MODULE_LoadModule16( LPCSTR libname, BOOL implicit, BOOL lib_
FreeLibrary
(
mod32
);
owner_exists
=
0
;
}
/* 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
++
;
FreeLibrary
(
mod32
);
return
hModule
;
}
}
else
{
...
...
@@ -1137,6 +1127,16 @@ static HINSTANCE16 MODULE_LoadModule16( LPCSTR libname, BOOL implicit, BOOL lib_
return
ERROR_FILE_NOT_FOUND
;
}
}
/* 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
(
descr
&&
(
hModule
=
GetModuleHandle16
(
libname
)))
{
TRACE
(
"module %s already loaded by owner
\n
"
,
libname
);
pModule
=
NE_GetPtr
(
hModule
);
if
(
pModule
)
pModule
->
count
++
;
FreeLibrary
(
mod32
);
return
hModule
;
}
}
if
(
descr
)
...
...
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