mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Fix reported crash - clamp row count input to non-negative value
This commit is contained in:
@@ -820,7 +820,7 @@ namespace renderdocui.Windows
|
||||
if (IsDisposed || MeshView) return int.MaxValue;
|
||||
int maxrows = 0;
|
||||
int.TryParse(rowRange.Text, out maxrows);
|
||||
return maxrows;
|
||||
return Math.Max(0, maxrows);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user