~pixelherodev/DSM-9

7bce6aa7c0dce9f7d480a0cb4014081efb7e5015 — Noam Preil a day ago 0550e37
tmp
1 files changed, 2 insertions(+), 2 deletions(-)

M sm2.c
M sm2.c => sm2.c +2 -2
@@ 283,7 283,7 @@ dsm9stream(dsm9deck *deck, uint32_t index)
	}
	if(field < 2){
		if(field == 0)
			front = UINT32_MAX;
			front = (uint32_t)-1;
		return 0;
	}
	deck->fronts[index] = front;


@@ 298,7 298,7 @@ dsm9cardname(dsm9deck *deck, uint32_t index)
	uint32_t id = deck->ids[index];
	uint32_t end = deck->fronts[index];
	/* If card is invalid, or if the card is new and we cannot stream it, return NULL */
	if(end == UINT32_MAX || (end == 0 && !dsm9stream(deck, index)))
	if(end == (uint32_t)-1 || (end == 0 && !dsm9stream(deck, index)))
		return NULL;
	end = deck->fronts[index];
	/* Delimiter is three bytes, and we don't want it */