mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
2dfcb500e2
MSVC build reports: {{ dll\win32\msi\msvchelper.h(3): warning C4005: '__ASM_DEFINE_FUNC': macro redefinition sdk\include\reactos\wine/asm.h(60): note: see previous definition of '__ASM_DEFINE_FUNC' dll\win32\msi\custom.c(547): warning C4003: not enough actual parameters for macro '__ASM_DEFINE_FUNC' }} Addendum to476c99b
and9efafd6
.
25 lines
433 B
C
25 lines
433 B
C
|
|
#ifdef __i386__
|
|
|
|
typedef unsigned int (__stdcall *__MSVC__MsiCustomActionEntryPoint)(unsigned int);
|
|
|
|
static
|
|
__declspec(naked)
|
|
unsigned int
|
|
__cdecl
|
|
CUSTOMPROC_wrapper(__MSVC__MsiCustomActionEntryPoint proc, unsigned int handle)
|
|
{
|
|
__asm
|
|
{
|
|
push ebp
|
|
mov ebp, esp
|
|
sub esp, 4
|
|
push dword ptr [ebp + 12]
|
|
mov eax, dword ptr [ebp + 8]
|
|
call eax
|
|
leave
|
|
ret
|
|
}
|
|
}
|
|
|
|
#endif
|