Functions were always looking at index 0. Bounds check was also not
checking for values greater than size. We weren't seeing issues because
these functions don't have active callers.
Fixes compiler warnings on Windows build.
Motivation and Context
Looking through compiler warnings, and noticed these functions weren't implemented correctly.
How Has This Been Tested?
No breakpoint inspection since these functions aren't called.
Windows 7 - Stop recording hangs with and without change.
Windows 10 - Recording works with and without change.
Windows compiler warnings are gone.
Types of changes
Bug fix (non-breaking change which fixes an issue)
Description
Functions were always looking at index 0. Bounds check was also not checking for values greater than size. We weren't seeing issues because these functions don't have active callers.
Fixes compiler warnings on Windows build.
Motivation and Context
Looking through compiler warnings, and noticed these functions weren't implemented correctly.
How Has This Been Tested?
No breakpoint inspection since these functions aren't called.
Windows 7 - Stop recording hangs with and without change. Windows 10 - Recording works with and without change.
Windows compiler warnings are gone.
Types of changes
Checklist: