fix code page unchaining

This commit is contained in:
Matthew Flatt 2011-04-26 19:35:12 -06:00
parent 50509c10dc
commit a2e3116494

View File

@ -963,10 +963,10 @@ static void unchain_page(void *pg)
if (!((void **)pg)[2])
code_allocation_page_list = ((void **)pg)[3];
else
((void **)(((void **)pg)[2]))[3] = ((void **)pg)[2];
((void **)(((void **)pg)[2]))[3] = ((void **)pg)[3];
if (((void **)pg)[3])
((void **)(((void **)pg)[3]))[2] = ((void **)pg)[3];
((void **)(((void **)pg)[3]))[2] = ((void **)pg)[2];
}
static void init_free_list()