SI: Fix bounds check in GetDeviceType
Merge pull request #1170 from lioncash/bounds

SI: Fix bounds check in GetDeviceType