mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
Specify lambda capture for current object
Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ed6b30af12
commit
770c87bf73
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user