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
2aad33e0
Commit
2aad33e0
authored
Dec 10, 1998
by
Ulrich Weigand
Committed by
Alexandre Julliard
Dec 10, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LoadModule32/WinExec32 should return 16-bit hInstance/hTask.
parent
e8219912
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
module.c
loader/module.c
+3
-8
No files found.
loader/module.c
View file @
2aad33e0
...
...
@@ -525,15 +525,10 @@ HINSTANCE32 WINAPI LoadModule32( LPCSTR name, LPVOID paramBlock )
NULL
,
&
startup
,
&
info
))
return
GetLastError
();
/* guaranteed to be < 32 */
/* Get
hInstance
from process */
/* Get
16-bit hInstance/hTask
from process */
pdb
=
PROCESS_IdToPDB
(
info
.
dwProcessId
);
if
(
pdb
->
exe_modref
)
hInstance
=
pdb
->
exe_modref
->
module
;
else
{
tdb
=
pdb
?
(
TDB
*
)
GlobalLock16
(
pdb
->
task
)
:
NULL
;
hInstance
=
tdb
?
tdb
->
hInstance
:
0
;
}
tdb
=
pdb
?
(
TDB
*
)
GlobalLock16
(
pdb
->
task
)
:
NULL
;
hInstance
=
tdb
&&
tdb
->
hInstance
?
tdb
->
hInstance
:
pdb
?
pdb
->
task
:
0
;
/* Close off the handles */
CloseHandle
(
info
.
hThread
);
...
...
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