TSPI_lineGetDevCaps() returns wrong dwLineNameSize
Brought to you by:
activa
V1.8.2 of ActivaTSP has a bug where the function TSPI_lineGetDevCaps() returns a wrong dwLineNameSize.
The function stores the total size of the szLineName array, instead of populating the dwLineNameSize variable with the actual length of the string contained within the array.
This causes problems when using the ActivaTSP device from languages that do not use null terminated strings.
It affects both the ATAPI C# library and also the Tapi2Lib C# library.
Both the above libraries will throw an exception during initialization when ActivaTSP is installed.
The attached patch fixes the problem, by filling the dwLineNameSize variable with the correct length of the string contained within szLineName.
Fix patch file