Stop crash/assert when trying to decrease the debugger memory window bytes per line to 0.

This commit is contained in:
Phil Bennett 2009-01-16 18:21:18 +00:00
parent 12a8a9312a
commit 804434aa15

View File

@ -3336,7 +3336,9 @@ void memory_view_set_chunks_per_row(debug_view *view, UINT32 rowchunks)
debug_view_memory *memdata = view->extra_data;
assert(view->type == DVT_MEMORY);
assert(rowchunks > 0);
if (rowchunks < 1)
return;
if (rowchunks != memdata->chunks_per_row)
{