Commit b9da4576 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Use segmented lpvtbl pointer for IMalloc16 interface, not linear one.

parent c22ca7af
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment