From f24aa59a9a54e2f35fde6879b631eb3edd70cd24 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sun, 28 May 2006 07:10:01 +0000
Subject: [PATCH] Fix bug in last commit.

---
 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 aed4654b7f..452f444b79 100644
--- a/src/xpdev/xpbeep.c
+++ b/src/xpdev/xpbeep.c
@@ -423,7 +423,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 */
-	wh=wh_bufs[curr_wh];
+	wh=&wh_bufs[curr_wh];
 	waveOutWrite(waveOut, wh, sizeof(wh_bufs[0]));
 
 	while(!(this_wh->dwFlags & WHDR_DONE))
-- 
GitLab