fix (pretty sure :)

This commit is contained in:
Miroslav Stampar 2010-02-22 14:13:32 +00:00
parent 7e5a980f1b
commit ad0def7604

View File

@ -528,16 +528,23 @@ int sys_bineval(
return 0;
}
#if defined(_M_IX86)
#if defined(_WIN32) || defined(_WIN64) || defined(__WIN32__) || defined(WIN32)
typedef void(*pt2func)();
DWORD WINAPI exec_payload(LPVOID lpParameter)
{
__try
{
#if defined(_M_IX86)
__asm
{
mov eax, [lpParameter]
call eax
}
#else
((pt2func)lpParameter)();
#endif
}
__except(EXCEPTION_EXECUTE_HANDLER)
{