Specify lambda capture for current object

Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
This commit is contained in:
Kamil Diedrich
2021-11-24 23:40:43 +00:00
committed by Compute-Runtime-Automation
parent ed6b30af12
commit 770c87bf73

View File

@@ -20,7 +20,7 @@ std::unique_ptr<PageFaultManager> PageFaultManager::create() {
std::function<LONG(struct _EXCEPTION_POINTERS *exceptionInfo)> PageFaultManagerWindows::pageFaultHandler;
PageFaultManagerWindows::PageFaultManagerWindows() {
pageFaultHandler = [&](struct _EXCEPTION_POINTERS *exceptionInfo) {
pageFaultHandler = [this](struct _EXCEPTION_POINTERS *exceptionInfo) {
if (exceptionInfo->ExceptionRecord->ExceptionCode == EXCEPTION_ACCESS_VIOLATION) {
if (this->verifyPageFault(reinterpret_cast<void *>(exceptionInfo->ExceptionRecord->ExceptionInformation[1]))) {
//this is our fault that we serviced, continue app execution