Stack corruption in dsound.c