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
2a2e303d
Commit
2a2e303d
authored
Nov 12, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fixed asm proxys to support more than 128 methods.
Reported by Martin Kochanski.
parent
d35c13c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
tmarshal.c
dlls/oleaut32/tmarshal.c
+5
-3
No files found.
dlls/oleaut32/tmarshal.c
View file @
2a2e303d
...
@@ -372,12 +372,13 @@ static HRESULT num_of_funcs(ITypeInfo *tinfo, unsigned int *num)
...
@@ -372,12 +372,13 @@ static HRESULT num_of_funcs(ITypeInfo *tinfo, unsigned int *num)
typedef
struct
_TMAsmProxy
{
typedef
struct
_TMAsmProxy
{
BYTE
popleax
;
BYTE
popleax
;
BYTE
pushlval
;
BYTE
pushlval
;
BYTE
nr
;
DWORD
nr
;
BYTE
pushleax
;
BYTE
pushleax
;
BYTE
lcall
;
BYTE
lcall
;
DWORD
xcall
;
DWORD
xcall
;
BYTE
lret
;
BYTE
lret
;
WORD
bytestopop
;
WORD
bytestopop
;
BYTE
nop
;
}
TMAsmProxy
;
}
TMAsmProxy
;
#include "poppack.h"
#include "poppack.h"
...
@@ -1709,7 +1710,7 @@ static HRESULT init_proxy_entry_point(TMProxyImpl *proxy, unsigned int num)
...
@@ -1709,7 +1710,7 @@ static HRESULT init_proxy_entry_point(TMProxyImpl *proxy, unsigned int num)
* arg3 arg2 arg1 <method> <returnptr>
* arg3 arg2 arg1 <method> <returnptr>
*/
*/
xasm
->
popleax
=
0x58
;
xasm
->
popleax
=
0x58
;
xasm
->
pushlval
=
0x6
a
;
xasm
->
pushlval
=
0x6
8
;
xasm
->
nr
=
num
;
xasm
->
nr
=
num
;
xasm
->
pushleax
=
0x50
;
xasm
->
pushleax
=
0x50
;
xasm
->
lcall
=
0xe8
;
/* relative jump */
xasm
->
lcall
=
0xe8
;
/* relative jump */
...
@@ -1717,6 +1718,7 @@ static HRESULT init_proxy_entry_point(TMProxyImpl *proxy, unsigned int num)
...
@@ -1717,6 +1718,7 @@ static HRESULT init_proxy_entry_point(TMProxyImpl *proxy, unsigned int num)
xasm
->
xcall
-=
(
DWORD
)
&
(
xasm
->
lret
);
xasm
->
xcall
-=
(
DWORD
)
&
(
xasm
->
lret
);
xasm
->
lret
=
0xc2
;
xasm
->
lret
=
0xc2
;
xasm
->
bytestopop
=
(
nrofargs
+
2
)
*
4
;
/* pop args, This, iMethod */
xasm
->
bytestopop
=
(
nrofargs
+
2
)
*
4
;
/* pop args, This, iMethod */
xasm
->
nop
=
0x90
;
proxy
->
lpvtbl
[
num
]
=
xasm
;
proxy
->
lpvtbl
[
num
]
=
xasm
;
#else
#else
FIXME
(
"not implemented on non i386
\n
"
);
FIXME
(
"not implemented on non i386
\n
"
);
...
@@ -1754,7 +1756,7 @@ PSFacBuf_CreateProxy(
...
@@ -1754,7 +1756,7 @@ PSFacBuf_CreateProxy(
proxy
=
CoTaskMemAlloc
(
sizeof
(
TMProxyImpl
));
proxy
=
CoTaskMemAlloc
(
sizeof
(
TMProxyImpl
));
if
(
!
proxy
)
return
E_OUTOFMEMORY
;
if
(
!
proxy
)
return
E_OUTOFMEMORY
;
assert
(
sizeof
(
TMAsmProxy
)
==
1
2
);
assert
(
sizeof
(
TMAsmProxy
)
==
1
6
);
proxy
->
dispatch
=
NULL
;
proxy
->
dispatch
=
NULL
;
proxy
->
dispatch_proxy
=
NULL
;
proxy
->
dispatch_proxy
=
NULL
;
...
...
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