This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
return code not set bug in /dev/dsp handler
- To: "Cygwin-Patches" <cygwin-patches at sourceware dot cygnus dot com>
- Subject: return code not set bug in /dev/dsp handler
- From: "Ralf Habacker" <Ralf dot Habacker at freenet dot de>
- Date: Sat, 13 Oct 2001 09:28:54 +0200
Hi,
in the SNDCTL_DSP_GETBLKSIZE ioctl code of the dev/dsp device the return value
was not set correctly.
Currently it returns the default value -1, which results in wrong client
behavior.
The following patch fix this.
Regards
Ralf
Index: fhandler_dsp.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/fhandler_dsp.cc,v
retrieving revision 1.10
diff -u -b -B -r1.10 fhandler_dsp.cc
--- fhandler_dsp.cc 2001/10/04 02:34:19 1.10
+++ fhandler_dsp.cc 2001/10/13 07:20:14
@@ -526,6 +526,7 @@
CASE (SNDCTL_DSP_GETBLKSIZE)
*intptr = Audio::BLOCK_SIZE;
+ return 0;
break;
CASE (SNDCTL_DSP_SETFMT)