mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 17:58:37 +12:00
Minor shortening in Resc
This commit is contained in:
parent
0b52abeaf8
commit
0d6386f391
1 changed files with 1 additions and 7 deletions
|
@ -924,13 +924,7 @@ int cellRescSetSrc(s32 idx, mem_ptr_t<CellRescSrc> src)
|
||||||
return CELL_RESC_ERROR_NOT_INITIALIZED;
|
return CELL_RESC_ERROR_NOT_INITIALIZED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(idx < 0 || SRC_BUFFER_NUM <= idx)
|
if (idx < 0 || idx >= SRC_BUFFER_NUM || src->width < 1 || src->width > 4096 || src->height < 1 || src->height > 4096)
|
||||||
{
|
|
||||||
cellResc->Error("cellRescSetSrc : CELL_RESC_ERROR_BAD_ARGUMENT");
|
|
||||||
return CELL_RESC_ERROR_BAD_ARGUMENT;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(src->width < 1 || 4096 < src->width || src->height < 1 || 4096 < src->height)
|
|
||||||
{
|
{
|
||||||
cellResc->Error("cellRescSetSrc : CELL_RESC_ERROR_BAD_ARGUMENT");
|
cellResc->Error("cellRescSetSrc : CELL_RESC_ERROR_BAD_ARGUMENT");
|
||||||
return CELL_RESC_ERROR_BAD_ARGUMENT;
|
return CELL_RESC_ERROR_BAD_ARGUMENT;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue