asm help
flyker
flyker at everys.com
Tue Nov 11 07:51:12 CST 2003
Can anybody help me write the function for Linux :
__declspec(naked) BOOL WINAPI
_InitCommonControlsEx(INITCOMMONCONTROLSEX* lpInitCtrls)
{
if(!dwLPA_InitCommonControlsEx)
{
__asm mov eax, 0
__asm ret 4
}
else
{
__asm jmp dwLPA_InitCommonControlsEx
}
}
May be :
__declspec(naked) BOOL WINAPI
_InitCommonControlsEx(WINGS_INITCOMMONCONTROLSEX* lpInitCtrls)
{
if(!dwLPA_InitCommonControlsEx)
{
__asm__ __volatile__("movl 0, %eax");
__asm__ __volatile__("ret");
}
else
{
__asm__ __volatile__("jmp %0" : : "q"(dwLPA_InitCommonControlsEx));
}
}
More information about the wine-devel
mailing list