diff --git a/src/xpdev/xpbeep.c b/src/xpdev/xpbeep.c
index 009066b1d5328d5fbb65699dbb20adff31776784..e1270367adc244d7eab9368279f9bdf87d97a5cf 100644
--- a/src/xpdev/xpbeep.c
+++ b/src/xpdev/xpbeep.c
@@ -664,6 +664,7 @@ void xp_play_sample_thread(void *data)
 	int	i;
 #endif
 
+	SetThreadName("Sample Play");
 	sample_thread_running=TRUE;
 	while(1) {
 		if(!waited) {