Don't rely on ENOSPC - relies on errno.h

This commit is contained in:
libretroadmin 2022-12-19 03:17:09 +01:00
parent 2f3821ffc8
commit f6c2e4d292

View File

@ -710,10 +710,6 @@ static enum patch_error xdelta_apply_patch(
{
case 0: /* Success */
break;
case ENOSPC:
error_patch = PATCH_TARGET_ALLOC_FAILED;
free(*targetdata);
goto cleanup_stream;
default:
error_patch = PATCH_UNKNOWN;
free(*targetdata);