From 8a6c7fef87a22eef7eee1b9c0b1caa73ad8f7e06 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 2 Oct 2016 18:23:28 -0400 Subject: [PATCH] Initialize the DosExitList() items' function pointers. --- native/doscalls.c | 1 + 1 file changed, 1 insertion(+) diff --git a/native/doscalls.c b/native/doscalls.c index fabd25a..41f8698 100644 --- a/native/doscalls.c +++ b/native/doscalls.c @@ -271,6 +271,7 @@ APIRET DosExitList(ULONG ordercode, PFNEXITLIST fn) ExitListItem *newitem = (ExitListItem *) malloc(sizeof (ExitListItem)); if (!newitem) return ERROR_NOT_ENOUGH_MEMORY; + newitem->fn = fn; for (item = GExitList; item; item = item->next) { if (item->priority >= ((uint32) arg)) break;