[issue25387] sound_msgbeep doesn't check the return value of MessageBeep

Alexander Riccio report at bugs.python.org
Mon Oct 12 20:30:51 EDT 2015


New submission from Alexander Riccio:

A really minor issue (probably qualifies for the "easy" keyword):

sound_msgbeep (in http://svn.python.org/projects/python/trunk/PC/winsound.c) doesn't check the return value of MessageBeep (https://msdn.microsoft.com/en-us/library/windows/desktop/ms680356.aspx). This is a very minor issue, but the possibility of failure is not mentioned in the winsound documentation. Invisible failures are quite surprising.


A message in the Gnome archives (https://mail.gnome.org/archives/commits-list/2010-November/msg01938.html) has an example "fix".

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25387>
_______________________________________


More information about the Python-bugs-list mailing list