API cleanup, fix some lingering InvalWindowRects

This commit is contained in:
elasota
2020-03-14 06:38:46 -04:00
parent 3d37ded31d
commit cea0bde015
18 changed files with 37 additions and 213 deletions

View File

@@ -205,7 +205,7 @@ PLError_t LoadTriggerSound (short soundID)
}
else
{
BlockMove((Byte*)(*theSound), theSoundData[kMaxSounds - 1], soundDataSize);
memcpy(theSoundData[kMaxSounds - 1], (Byte*)(*theSound), soundDataSize);
theSound.Dispose();
}
}
@@ -246,7 +246,7 @@ PLError_t LoadBufferSounds (void)
if (theSoundData[i] == nil)
return (PLErrors::kOutOfMemory);
BlockMove(*theSound, theSoundData[i], soundDataSize);
memcpy(theSoundData[i], *theSound, soundDataSize);
theSound.Dispose();
}