REDIVIVUS

Proposals / #975

Resolve the Mac socketed-item scan's full BOOL result

applied · by Commit-Will · submitted 2026-11-02, applied 2026-11-02

Ghidra vmac 111 · 3cfe190

Mac00175426 returns literal fullEAX1 when its inventory scan finds a valid item, or fullEAX0 when exhausted; both actual callers test fullEAX. Resolve only the generic four-byte return to existing four-byte BOOL. Preserve pItem, ECX storage, __fastcc, zero stack arguments and locals. Full target, both callers and all three node-source/filter helpers match separate instruction listings; the paired originalWindows routine has the same scan and BOOL result. Windows uses a different EAX input, which is not copied. No name, input nominal type, union/layout, caller/helper or behavior change.

Changes 1, applied together

  1. Set prototype mac 0x00175426

    signatureundefined4 ITEMS_HasSocketedItems(D2UnitStrc * pItem)→BOOL ITEMS_HasSocketedItems(D2UnitStrc * pItem)
    convention__fastcc