Skip to content
Snippets Groups Projects
Commit 57471254 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Another Windows warning about constiness.

parent d0e73f2d
No related branches found
No related tags found
No related merge requests found
...@@ -925,7 +925,7 @@ do_xp_play_sample(const unsigned char *sampo, size_t sz, int *freed) ...@@ -925,7 +925,7 @@ do_xp_play_sample(const unsigned char *sampo, size_t sz, int *freed)
SLEEP(1); SLEEP(1);
} }
free(wh[curr_wh].lpData); free(wh[curr_wh].lpData);
wh[curr_wh].lpData=samp; wh[curr_wh].lpData=(LPSTR)samp;
wh[curr_wh].dwBufferLength=sz; wh[curr_wh].dwBufferLength=sz;
if(waveOutPrepareHeader(waveOut, &wh[curr_wh], sizeof(wh[curr_wh]))==MMSYSERR_NOERROR) { if(waveOutPrepareHeader(waveOut, &wh[curr_wh], sizeof(wh[curr_wh]))==MMSYSERR_NOERROR) {
if(waveOutWrite(waveOut, &wh[curr_wh], sizeof(wh[curr_wh]))==MMSYSERR_NOERROR) { if(waveOutWrite(waveOut, &wh[curr_wh], sizeof(wh[curr_wh]))==MMSYSERR_NOERROR) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment