This patch fixes a problem where the wave handle could be used when it is NULL. This shouldn't be a problem in normal practice but is encountered when closing and immediately opening another sound device. Waiting a while before opening another device or opening it again after failure works but the real cause of the problem is unknown. At least with this patch, the program won't crash.
Attachment:
primary.c.diff
Description: application/unknown-content-type-diff_auto_file