This project is read-only.
1
Vote

Bug in OpenNETCF.Telephony.DeviceCapabilities

description

Strings in DeviceCapabilities return an additional unwanted character
( DeviceCapabilities .LineName and ProviderName.ProviderName)
 
I think the properties should feed Encoding.Unicode.GetString() with one char less:
 
public string LineName { get { return LineNameSize == 0 ? "" : Encoding.Unicode.GetString(Data, LineNameOffset, LineNameSize - 2); } }
 
public string ProviderName { get { return ProviderInfoSize == 0 ? "" : Encoding.Unicode.GetString(Data, ProviderInfoOffset, ProviderInfoSize - 2); }}

comments