runlength = RtlFindFirstRunClear(&ps->bmp, &index);
while (runlength != 0) {
-#ifdef __REACTOS__
- uint64_t runstart, runend, start, end;
-#endif
if (index >= ps->bmplen)
break;
if (runlength == 0)
break;
}
-#ifndef __REACTOS__
+
uint64_t runstart = ps->address + (index << Vcb->sector_shift);
uint64_t runend = runstart + (runlength << Vcb->sector_shift);
uint64_t start = max(runstart, addr);
uint64_t end = min(runend, addr + length);
-#else
- runstart = ps->address + (index * Vcb->sector_shift);
- runend = runstart + (runlength * Vcb->sector_shift);
- start = max(runstart, addr);
- end = min(runend, addr + length);
-#endif
if (end > start)
RtlCopyMemory(buf + start - addr, &ps->data[start - ps->address], (ULONG)(end - start));
runlength = RtlFindFirstRunClear(&ps->bmp, &index);
while (runlength != 0) {
-#ifdef __REACTOS__
- uint64_t runstart, runend, start, end;
-#endif
if (index >= ps->bmplen)
break;
break;
}
-#ifndef __REACTOS__
uint64_t runstart = ps->address + (index << Vcb->sector_shift);
uint64_t runend = runstart + (runlength << Vcb->sector_shift);
uint64_t start = max(runstart, addr);
uint64_t end = min(runend, addr + length);
-#else
- runstart = ps->address + (index * Vcb->sector_shift);
- runend = runstart + (runlength * Vcb->sector_shift);
- start = max(runstart, addr);
- end = min(runend, addr + length);
-#endif
if (end > start)
RtlCopyMemory(buf + start - addr, &ps->data[start - ps->address], (ULONG)(end - start));
RtlCopyMemory(rp->data, rp->buf + rp->bumpoff, rp->read);
} else {
uint8_t* buf = rp->buf;
-#ifdef __REACTOS__
- unsigned int i;
- for (i = 0; i < rp->num_extents; i++) {
-#else
+
for (unsigned int i = 0; i < rp->num_extents; i++) {
-#endif // __REACTOS__
uint8_t *decomp = NULL, *buf2;
ULONG outlen, inlen, off2;
uint32_t inpageoff = 0;