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
60f36406
Commit
60f36406
authored
Mar 13, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
krnl386.exe: Preload gdi and user when thunks are being used.
parent
a72eb123
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
ne_module.c
dlls/krnl386.exe16/ne_module.c
+2
-5
thunk.c
dlls/krnl386.exe16/thunk.c
+8
-0
No files found.
dlls/krnl386.exe16/ne_module.c
View file @
60f36406
...
...
@@ -782,12 +782,9 @@ static BOOL NE_LoadDLLs( NE_MODULE *pModule )
/* its handle in the list of DLLs to initialize. */
HMODULE16
hDLL
;
/* special magic for gdi and user */
if
(
!
NE_strcasecmp
(
buffer
,
"user"
))
strcpy
(
buffer
,
"USER.EXE"
);
else
if
(
!
NE_strcasecmp
(
buffer
,
"gdi"
))
strcpy
(
buffer
,
"GDI.EXE"
);
/* Append .DLL to name if no extension present */
else
if
(
!
(
p
=
strrchr
(
buffer
,
'.'
))
||
strchr
(
p
,
'/'
)
||
strchr
(
p
,
'\\'
))
strcat
(
buffer
,
".DLL"
);
if
(
!
(
p
=
strrchr
(
buffer
,
'.'
))
||
strchr
(
p
,
'/'
)
||
strchr
(
p
,
'\\'
))
strcat
(
buffer
,
".DLL"
);
if
((
hDLL
=
MODULE_LoadModule16
(
buffer
,
TRUE
,
TRUE
))
<
32
)
{
...
...
dlls/krnl386.exe16/thunk.c
View file @
60f36406
...
...
@@ -272,6 +272,14 @@ static LPVOID _loadthunk(LPCSTR module, LPCSTR func, LPCSTR module32,
struct
ThunkDataCommon
*
TD16
;
HMODULE16
hmod
;
int
ordinal
;
static
int
done
;
if
(
!
done
)
{
LoadLibrary16
(
"gdi.exe"
);
LoadLibrary16
(
"user.exe"
);
done
=
TRUE
;
}
if
((
hmod
=
LoadLibrary16
(
module
))
<=
32
)
{
...
...
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