• Jeffrey Lee's avatar
    Fix invalid AMB node handle being used when low on memory · 7212561d
    Jeffrey Lee authored
      s/Wimp08s - If OS_AMBControl allocate is asked for a AMB node with a size > 0, but no pages can be claimed, it frees the node and returns an invalid handle (0). Make sure that the Wimp's allocateslot routine is aware of this, so that we don't try passing that bad handle back to AMBControl later on
      s/Iconbar - Use nullptr constant instead of -1 when checking task_slotsize (aka AMB node handle on modern machines)
      Tested on BB-xM
      Fixes abort seen when attempting to start a task with no pages in the free pool
    Version 5.53. Tagged as 'Wimp-5_53'
VersionASM 1010 Bytes