1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 13:33:02 +01:00

compile fix

This commit is contained in:
zsilencer
2014-08-25 11:39:01 -06:00
parent de918219b0
commit 9cb6b2ada5
2 changed files with 3 additions and 3 deletions

View File

@@ -511,7 +511,7 @@ int sound_channel_stop(int channel)
rct_sound_channel* sound_channel = &RCT2_ADDRESS(RCT2_ADDRESS_SOUND_CHANNEL_LIST, rct_sound_channel)[channel];
sound_channel->var_0 = 0;
sound_channel->var_160 = 1;
while (InterlockedExchange(&RCT2_GLOBAL(0x009E1AAC, LONG), 1) != 1) {
while (_InterlockedExchange(&RCT2_GLOBAL(0x009E1AAC, LONG), 1) != 1) {
Sleep(10);
}
if (sound_channel->var_120)
@@ -523,7 +523,7 @@ int sound_channel_stop(int channel)
dsbuffer->lpVtbl->Release(dsbuffer);
RCT2_ADDRESS(RCT2_ADDRESS_DSOUND_BUFFERS, LPDIRECTSOUNDBUFFER)[channel] = 0;
}
InterlockedExchange(&RCT2_GLOBAL(0x009E1AAC, LONG), 0);
_InterlockedExchange(&RCT2_GLOBAL(0x009E1AAC, LONG), 0);
return 1;
}