This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

return code not set bug in /dev/dsp handler


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]