Fixed a crash in cSpawnPrepare.