REDIVIVUS

Proposals / #1572

Mac PATHCACHE_FlushEventHandler: int32_t __cdecl (pHandlerCallRef, pEvent, pUserData) Carbon handler

checked · by KierTaylor · submitted 2026-11-08

This is a Carbon EventHandlerProcPtr installed by PATHCACHE_Initialize (its address, ESI+0xc2 = 0x0002d31b, is the UPP passed to InstallEventHandler 0x0030aaae), so the system calls it with the standard three args (EventHandlerCallRef, EventRef, void* userData). The body ignores them, calls FlushPartialPathCache 0x0002d386, and returns MOV EAX,0xffffd96e (-9874, eventNotHandledErr) so the event keeps propagating.

Changes 1, applied together

  1. Set prototype mac 0x0002d31b

    signatureundefined PATHCACHE_FlushEventHandler(void)→int32_t PATHCACHE_FlushEventHandler(void* pHandlerCallRef, void* pEvent, void* pUserData)
    conventionunknown→__cdecl