[PATCH 3/3] comdlg32: Properly handle out of bounds values