Skip to content

Commit

Permalink
fixed a bug in LowFragmentationHeap
Browse files Browse the repository at this point in the history
  • Loading branch information
rdzhaafar committed Sep 18, 2020
1 parent 9fbe13a commit 27f1a2f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion al-khaser/AntiDebug/LowFragmentationHeap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,16 @@ Return Value:
#endif
}

// When running in a Win10 VM FrontEndHeap does not get initialized,
// so we get a null pointer dereferencing error.
if (FrontEndHeap == NULL) {
return TRUE;
}
// In Windows 10. the offset changes very often.
// Ignoring it from now.
if (*FrontEndHeap == NULL) {
return TRUE;
}

return FALSE;
}
}

0 comments on commit 27f1a2f

Please sign in to comment.