mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 12:09:36 +00:00
API cleanup, fix some lingering InvalWindowRects
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user