Initialize the DosExitList() items' function pointers.
This commit is contained in:
1 parent
d9823705c0
commit
8a6c7fef87
1 file changed
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user