BUG fixed in VFD_Control.cs (1 Viewer)

CHli

Portal Pro
July 5, 2005
1,251
14
Switzerland
Home Country
Switzerland Switzerland
Since some months now I have an IndexOutOfBuffer exception at media portal start which is due to a bug in VFD_Control.cs. (only logged no error is being displayed)

In the method FindTheHid() there is a problem which cause an exception because we try to read at DevicePathName[128] and this goes beyond the array limits.

Just replace line 215 in VFD_Control.cs :

} while (!(_MyDeviceDetected | (MemberIndex == DevicePathName.Length + 1)));

with

} while (!(_MyDeviceDetected | (MemberIndex == DevicePathName.Length)));


Fixed :)
 

Users who are viewing this thread

Top Bottom