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

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 r

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

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