2016-07-02 15:28:24 +00:00
|
|
|
#include "wincodecs_private.h"
|
|
|
|
|
2017-02-17 12:17:20 +00:00
|
|
|
#undef DEFINE_THISCALL_WRAPPER
|
2016-07-02 15:28:24 +00:00
|
|
|
#define DEFINE_THISCALL_WRAPPER(func,args) \
|
|
|
|
typedef struct {int x[args/4];} _tag_##func; \
|
|
|
|
void __stdcall func(_tag_##func p1); \
|
|
|
|
__declspec(naked) void __stdcall __thiscall_##func(_tag_##func p1) \
|
|
|
|
{ \
|
|
|
|
__asm pop eax \
|
|
|
|
__asm push ecx \
|
|
|
|
__asm push eax \
|
|
|
|
__asm jmp func \
|
|
|
|
}
|
|
|
|
|
|
|
|
DEFINE_THISCALL_WRAPPER(IMILUnknown1Impl_unknown1, 8)
|
|
|
|
DEFINE_THISCALL_WRAPPER(IMILUnknown1Impl_unknown3, 8)
|
|
|
|
DEFINE_THISCALL_WRAPPER(IMILUnknown1Impl_unknown8, 4)
|