58b5e3 oopsy daisy.

Authored and Committed by midipix 9 years ago
    oopsy daisy.
    
        
src/blitter/ntapi_blt_block.c CHANGED
@@ -97,7 +97,7 @@ int32_t __fastcall __ntapi_blt_obtain(
97
97
98
98
if (blitter->info.blocks_avail == 0)
99
99
return NT_STATUS_ALLOCATE_BUCKET;
100
- else if ((bit = *blkid % sizeof(size_t)) == 0)
100
+ else if ((bit = *blkid % (8*sizeof(size_t))) == 0)
101
101
return __ntapi_blt_acquire(blitter,blkid);
102
102
103
103
for (n=0,mask=(uintptr_t)-1; n<bit; n++)