LFN icon indicating copy to clipboard operation
LFN copied to clipboard

amx_FindPublic hooks from other plugins are ignored

Open IS4Code opened this issue 5 years ago • 0 comments

When loaded after other plugins, the amx_FindPublic hook ignores their custom implementations and handles the calls in the standard way. The reason is that the base amx_FindPublic must not be called, overwise a call to amx_GetPublic would soon corrupt the stack (where a fixed-length array is normally allocated for the function name).

There is no other way than to load LFN before these plugins, as calling their implementation could still result in a call to the base implementation (in case the function is not found), but perhaps a warning should be produced that other hooks are overwritten.

IS4Code avatar Nov 20 '19 22:11 IS4Code