Re: mscoree: Implement vtable fixups.
Vincent Povirk <madewokherd(a)gmail.com> writes:
+ if (fixup->fixup->type & COR_VTABLE_32BIT) + { + DWORD *vtable = fixup->vtable; + DWORD *tokens = fixup->tokens; + for (i=0; i<fixup->fixup->count; i++) + { + TRACE("%x\n", tokens[i]); + vtable[i] = (DWORD)host->mono->mono_marshal_get_vtfixup_ftnptr( + image, tokens[i], fixup->fixup->type);
This will cause warnings on 64-bit. -- Alexandre Julliard julliard(a)winehq.org
This will cause warnings on 64-bit.
Casting a pointer to a DWORD? Well, any 64-bit image that reaches that line would be broken, so I don't think there's any more correct thing to do. I'd rather not change the code depending on architecture just to avoid a warning.
participants (2)
-
Alexandre Julliard -
Vincent Povirk