From 7740eaccdddb94070a69b45cbd7b37d68940b393 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 6 Aug 2019 17:26:00 +0000 Subject: __ntapi_blt_obtain(): fix optimized code path (do not reset *blkid). --- src/blitter/ntapi_blt_block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/blitter/ntapi_blt_block.c b/src/blitter/ntapi_blt_block.c index 803e723..7fd0094 100644 --- a/src/blitter/ntapi_blt_block.c +++ b/src/blitter/ntapi_blt_block.c @@ -98,7 +98,7 @@ int32_t __fastcall __ntapi_blt_obtain( if (blitter->info.blocks_avail == 0) return NT_STATUS_ALLOCATE_BUCKET; else if ((bit = *blkid % (8*sizeof(size_t))) == 0) - return __ntapi_blt_acquire(blitter,blkid); + return __blt_acquire(blitter,blkid); for (n=0,mask=(uintptr_t)-1; n