mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 21:20:25 +00:00
Use segmented lpvtbl pointer for IMalloc16 interface, not linear one.
This commit is contained in:
parent
c22ca7af80
commit
b9da4576c6
@ -208,7 +208,7 @@ IMalloc16_Constructor() {
|
||||
|
||||
This = (IMalloc16Impl*)SEGPTR_NEW(IMalloc16Impl);
|
||||
if (!msegvt16) {
|
||||
This->lpvtbl = msegvt16 = SEGPTR_NEW(ICOM_VTABLE(IMalloc16));
|
||||
msegvt16 = SEGPTR_NEW(ICOM_VTABLE(IMalloc16));
|
||||
|
||||
#define VTENT(x) msegvt16->fn##x = (void*)WIN32_GetProcAddress16(hcomp,"IMalloc16_"#x);assert(msegvt16->fn##x)
|
||||
VTENT(QueryInterface);
|
||||
@ -220,8 +220,8 @@ IMalloc16_Constructor() {
|
||||
VTENT(GetSize);
|
||||
VTENT(DidAlloc);
|
||||
VTENT(HeapMinimize);
|
||||
msegvt16 = (ICOM_VTABLE(IMalloc16)*)SEGPTR_GET(msegvt16);
|
||||
#undef VTENT
|
||||
This->lpvtbl = (ICOM_VTABLE(IMalloc16)*)SEGPTR_GET(msegvt16);
|
||||
}
|
||||
This->ref = 1;
|
||||
/* FIXME: implement multiple heaps */
|
||||
|
Loading…
Reference in New Issue
Block a user