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
99f3a924
Commit
99f3a924
authored
Apr 30, 2000
by
Uwe Bonnes
Committed by
Alexandre Julliard
Apr 30, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Thread pseudo handle and not Thread Id as argument for the call to
GetThreadSelectorEntry.
parent
9e1c48b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
wowthunk.c
relay32/wowthunk.c
+8
-6
No files found.
relay32/wowthunk.c
View file @
99f3a924
...
...
@@ -25,7 +25,7 @@ DEFAULT_DEBUG_CHANNEL(thunk)
*/
BOOL
WINAPI
WOWGetDescriptor
(
SEGPTR
segptr
,
LPLDT_ENTRY
ldtent
)
{
return
GetThreadSelectorEntry
(
GetCurrentThread
Id
(),
return
GetThreadSelectorEntry
(
GetCurrentThread
(),
segptr
>>
16
,
ldtent
);
}
...
...
@@ -345,8 +345,8 @@ static DWORD WOW_CallProc32W16( BOOL Ex )
argconvmask
=
VA_ARG16
(
valist
,
DWORD
);
proc32
=
VA_ARG16
(
valist
,
FARPROC
);
TRACE
(
"(%ld,%ld,%p, Ex%d args["
,
nrofargs
,
argconvmask
,
proc32
,
Ex
);
args
=
(
DWORD
*
)
H
EAP_xalloc
(
GetProcessHeap
(),
0
,
sizeof
(
DWORD
)
*
nrofargs
);
args
=
(
DWORD
*
)
H
eapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
DWORD
)
*
nrofargs
);
if
(
args
==
NULL
)
proc32
=
NULL
;
/* maybe we should WARN here? */
/* CallProcEx doesn't need its args reversed */
for
(
i
=
0
;
i
<
nrofargs
;
i
++
)
{
if
(
Ex
)
{
...
...
@@ -357,13 +357,14 @@ static DWORD WOW_CallProc32W16( BOOL Ex )
if
(
argconvmask
&
(
1
<<
i
))
{
SEGPTR
ptr
=
VA_ARG16
(
valist
,
SEGPTR
);
args
[
aix
]
=
(
DWORD
)
PTR_SEG_TO_LIN
(
ptr
);
if
(
args
)
args
[
aix
]
=
(
DWORD
)
PTR_SEG_TO_LIN
(
ptr
);
if
(
TRACE_ON
(
thunk
))
DPRINTF
(
"%08lx(%p),"
,
ptr
,
PTR_SEG_TO_LIN
(
ptr
));
}
else
{
args
[
aix
]
=
VA_ARG16
(
valist
,
DWORD
);
if
(
TRACE_ON
(
thunk
))
DPRINTF
(
"%ld,"
,
args
[
aix
]);
DWORD
arg
=
VA_ARG16
(
valist
,
DWORD
);
if
(
args
)
args
[
aix
]
=
arg
;
if
(
TRACE_ON
(
thunk
))
DPRINTF
(
"%ld,"
,
arg
);
}
}
if
(
TRACE_ON
(
thunk
))
DPRINTF
(
"])
\n
"
);
...
...
@@ -407,6 +408,7 @@ static DWORD WOW_CallProc32W16( BOOL Ex )
ret
=
0
;
break
;
}
/* POP nrofargs DWORD arguments and 3 DWORD parameters */
if
(
!
Ex
)
stack16_pop
(
(
3
+
nrofargs
)
*
sizeof
(
DWORD
)
);
...
...
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