Initialize the DosExitList() items' function pointers.

This commit is contained in:
Ryan C. Gordon committed 2016-10-02 18:23:28 -04:00
1 parent d9823705c0
commit 8a6c7fef87
1 file changed
+1
+1
View File
@@ -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;