illegal parameter in WaitForMultipleObjects?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

The MS documentation says that the first parameters cannot be zero.
http://msdn.microsoft.com/en-us/library/ms687025%28v=vs.85%29.aspx

If you look at check_connecting() in ./pjlib/src/pj/ioqueue_winnt.c,
it is calling WaitForMultipleObjects() without checking the first parameter (ioqueue->connecting_count). It does become zero causing error reports from some debugging tool. It is probably not a big deal but would be nice to fix anyway. Perhaps something like

if( ! ioqueue->connecting_count )
break;

before calling WaitForMultipleObjects?

Thanks,
-Eugene

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110909/8e967b7b/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux