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

Another Windows warning about constiness.

parent 629b26b0
Branches
Tags
1 merge request!455Update branch with changes from master
......@@ -925,7 +925,7 @@ do_xp_play_sample(const unsigned char *sampo, size_t sz, int *freed)
SLEEP(1);
}
free(wh[curr_wh].lpData);
wh[curr_wh].lpData=samp;
wh[curr_wh].lpData=(LPSTR)samp;
wh[curr_wh].dwBufferLength=sz;
if(waveOutPrepareHeader(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