Skip to content

Commit

Permalink
Initialize the DosExitList() items' function pointers.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 2, 2016
1 parent d982370 commit 8a6c7fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions native/doscalls.c
Expand Up @@ -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;
Expand Down

0 comments on commit 8a6c7fe

Please sign in to comment.