WaitForMultipleObjects should conform to API and return WAIT_FAILED when nCount is 0
Merge pull request #917 from hardening/WaitForMultipleObjectsFix

WaitForMultipleObjects should conform to API and return WAIT_FAILED when nCount is 0