reactos/dll/win32/ole32/msvc-thiscall.c
Amine Khaldi 527f2f9057 [SHELL/EXPERIMENTS]
* Create a branch for some evul shell experiments.

svn path=/branches/shell-experiments/; revision=61927
2014-02-02 19:37:27 +00:00

13 lines
367 B
C

#define DEFINE_THISCALL_WRAPPER(func,args) \
typedef struct {int x[args/4];} _tag_##func; \
void __stdcall func(_tag_##func p1); \
__declspec(naked) void __stdcall func(_tag_##func p1) \
{ \
__asm pop eax \
__asm push ecx \
__asm push eax \
__asm jmp func \
}
DEFINE_THISCALL_WRAPPER(Allocate_PMemoryAllocator,8)