Recompile the Bink custom allocation and release callbacks #91

Merged
R0Y00 merged 1 commit from upstream-pr/92 into main 2026-11-21 15:50:47 +00:00
R0Y00 commented 2026-11-21 15:49:08 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-21T15:49:08Z.


Follow-up to #74 and #88. Translate the callback setter together with the allocation and release paths. Bind the two writable slots identified by the setter, and call the release function selected by the translated caller from the live block.

Windows verification used the locally translated callers, a source-built native control and its translation. Each test kept two custom blocks live, checked the saved release addresses and guarded payloads, then replaced or cleared the installed callbacks before releasing each original base exactly once. A null custom return fell back to XMemAlloc and was released once by XMemFree. Additional cases covered failure of both attempts and an explicit custom refusal.

The existing default-allocator cases remain in the same CTest. CI exercises the native and translated public controls. The local package and generated translations are excluded.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6530978050 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/92). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-21T15:49:08Z. --- Follow-up to #74 and #88. Translate the callback setter together with the allocation and release paths. Bind the two writable slots identified by the setter, and call the release function selected by the translated caller from the live block. Windows verification used the locally translated callers, a source-built native control and its translation. Each test kept two custom blocks live, checked the saved release addresses and guarded payloads, then replaced or cleared the installed callbacks before releasing each original base exactly once. A null custom return fell back to XMemAlloc and was released once by XMemFree. Additional cases covered failure of both attempts and an explicit custom refusal. The existing default-allocator cases remain in the same CTest. CI exercises the native and translated public controls. The local package and generated translations are excluded.
upstream-sync closed this pull request 2026-11-24 06:41:17 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!91
No description provided.