Re: asm help

2003-11-12 Thread flyker
BOOL WINAPI _InitCommonControlsEx(WINGS_INITCOMMONCONTROLSEX* lpInitCtrls) { if(!dwLPA_InitCommonControlsEx) { return FALSE; } else { return dwLPA_InitCommonControlsEx(lpInitCtrls); } } The jmp is an optimization step, where the new function is called with the same

asm help

2003-11-11 Thread flyker
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

Re: asm help

2003-11-11 Thread Marcus Meissner
On Tue, Nov 11, 2003 at 04:51:12PM +0300, flyker wrote: 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 }

Re: asm help

2003-11-11 Thread Shachar Shemesh
Marcus Meissner wrote: On Tue, Nov 11, 2003 at 04:51:12PM +0300, flyker wrote: Can anybody help me write the function for Linux : __declspec(naked) BOOL WINAPI _InitCommonControlsEx(INITCOMMONCONTROLSEX* lpInitCtrls) { if(!dwLPA_InitCommonControlsEx) { __asm mov eax, 0 __asm