mirror of
https://github.com/reactos/reactos.git
synced 2024-08-22 19:33:01 +00:00
![Serge Gautherie](/assets/img/avatar_default.png)
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
.
26 lines
433 B
C
26 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
|