Mac IDirectSoundBuffer_QueryInterface: int32_t __cdecl (pBuffer, pIid, ppInterface) shim
This is the Mac DirectSound shim. The body ignores its args and returns MOV EAX,0x80004002 (E_NOINTERFACE). The caller SOUND_InitDirectSound 0x002e742f stores three args, [ESP]=the buffer, [ESP+4]=an IID pointer from a global and [ESP+8]=LEA of the out interface slot, then tests the HRESULT (TEST EAX,EAX / JS). This is the flattened form of IUnknown::QueryInterface(this, REFIID, void**).
Changes 1, applied together
Set prototype
mac 0x000331easignatureundefined IDirectSoundBuffer_QueryInterface(void)→int32_t IDirectSoundBuffer_QueryInterface(void* pBuffer, void* pIid, void** ppInterface)conventionunknown→__cdecl