diff --git a/src/xpdev/xpbeep.c b/src/xpdev/xpbeep.c index 79f010f18879cb96210220065fcb7d70707785eb..811f175dd9dc6f7ab8c3f022470cf92fd46a1f43 100644 --- a/src/xpdev/xpbeep.c +++ b/src/xpdev/xpbeep.c @@ -663,8 +663,6 @@ BOOL DLLCALL xp_play_sample(const unsigned char *sample, size_t sample_size, BOO #ifdef _WIN32 if(handle_type==SOUND_DEVICE_WIN32) { - wh.lpData=sample; - wh.dwBufferLength=sample_size; wh.lpData=sample; wh.dwBufferLength=sample_size; if(waveOutPrepareHeader(waveOut, &wh, sizeof(wh))==MMSYSERR_NOERROR) {