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
3a2e7d1a
Commit
3a2e7d1a
authored
May 29, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
krnl386.exe: Release the Win16 lock when loading a 32-bit dll.
parent
c13be744
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
ne_module.c
dlls/krnl386.exe16/ne_module.c
+5
-0
No files found.
dlls/krnl386.exe16/ne_module.c
View file @
3a2e7d1a
...
...
@@ -981,8 +981,11 @@ static HINSTANCE16 MODULE_LoadModule16( LPCSTR libname, BOOL implicit, BOOL lib_
if
(
strlen
(
basename
)
<
sizeof
(
dllname
)
-
6
)
{
DWORD
count
;
char
*
q
;
ReleaseThunkLock
(
&
count
);
strcpy
(
dllname
,
basename
);
q
=
strrchr
(
dllname
,
'.'
);
if
(
!
q
)
strcat
(
dllname
,
".dll"
);
...
...
@@ -1011,6 +1014,7 @@ static HINSTANCE16 MODULE_LoadModule16( LPCSTR libname, BOOL implicit, BOOL lib_
{
WARN
(
"couldn't load owner %s for 16-bit dll %s
\n
"
,
main_module
,
dllname
);
FreeLibrary
(
mod32
);
RestoreThunkLock
(
count
);
return
ERROR_FILE_NOT_FOUND
;
}
/* check if module was loaded native */
...
...
@@ -1023,6 +1027,7 @@ static HINSTANCE16 MODULE_LoadModule16( LPCSTR libname, BOOL implicit, BOOL lib_
}
}
}
RestoreThunkLock
(
count
);
/* 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 */
...
...
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