From 99a912ccc6e5fd6dc319867e65d2494e9c619a26 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sun, 28 May 2006 07:19:53 +0000
Subject: [PATCH] Fix another bug in last commit (last one?)

---
 src/xpdev/xpbeep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xpdev/xpbeep.c b/src/xpdev/xpbeep.c
index 3f6cc20765..df7cf1f542 100644
--- a/src/xpdev/xpbeep.c
+++ b/src/xpdev/xpbeep.c
@@ -422,7 +422,7 @@ BOOL xptone(double freq, DWORD duration, enum WAVE_SHAPE shape)
 
 	/* Prepare for next note */
 	curr_wh=1-curr_wh;
-	memset(wave[curr_wh], 128, sizeof(wave));	/* Ensure that if silence DOES timeout, you still get silence */
+	memset(wave[curr_wh], 128, sizeof(wave[0]));	/* Ensure that if silence DOES timeout, you still get silence */
 	wh=&wh_bufs[curr_wh];
 	waveOutWrite(waveOut, wh, sizeof(wh_bufs[0]));
 
-- 
GitLab