[WIN32] fixed a possible infinity loop during network enumeration.