Skip to content

Commit 5bb91db

Browse files
ecm-pushbxPerditionC
authored andcommitted
loadhigh.c: no record UMB region if excluded UMCB is Z and empty
1 parent 2d7efc4 commit 5bb91db

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

shell/loadhigh.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,10 @@ static int findUMBRegions(void)
347347
if (region->start)
348348
{
349349
region->end = FP_SEG(mcb) - 1;
350-
region++;
351-
region->start = 0;
350+
if (! (mcb->mcb_type == 'Z' && 0 == mcb->mcb_size)) {
351+
region++;
352+
region->start = 0;
353+
}
352354
}
353355
}
354356
else
@@ -625,7 +627,7 @@ static int parseArgs(char *cmdline, char **fnam, char **rest)
625627

626628
/* Disable access to all UMB regions not listed here */
627629
for (i = 1; i < umbRegions; i++)
628-
umbRegion[i].access = 0;
630+
umbRegion[i].access = 0;
629631

630632
r = 0;
631633

0 commit comments

Comments
 (0)