Fix incorrect string manipulation in NdisOpenProtocolConfiguration and add few casts...