# HG changeset patch # User Matti Hamalainen # Date 1603709317 -7200 # Node ID e73200c4584ab27f85a3d3907d25228d71922677 # Parent 7aee25fbc504d014288a69e4fed1e4a91e4e5ffd Add some error status setting in memio. diff -r 7aee25fbc504 -r e73200c4584a th_ioctx_mem.c --- a/th_ioctx_mem.c Mon Oct 26 12:33:02 2020 +0200 +++ b/th_ioctx_mem.c Mon Oct 26 12:48:37 2020 +0200 @@ -131,6 +131,7 @@ break; default: + ctx->status = THERR_FSEEK; return -1; } @@ -139,7 +140,10 @@ // Check the new position if (newPos < 0) + { + ctx->status = THERR_FSEEK; return -1; + } //if (!th_mem_realloc(ctx, newPos)) // return -1;