Fix the bounds checking in SHGetPathFromIDListA/W.