diff --git a/Scream/ivshmemsavedata.cpp b/Scream/ivshmemsavedata.cpp index f853088..e111286 100644 --- a/Scream/ivshmemsavedata.cpp +++ b/Scream/ivshmemsavedata.cpp @@ -20,6 +20,10 @@ //============================================================================= BOOLEAN CIVSHMEMSaveData::RequestMMAP() { + if (!m_ivshmem.devObj) { + return FALSE; + } + IO_STATUS_BLOCK ioStatus = { 0 }; KEVENT event; KeInitializeEvent(&event, NotificationEvent, FALSE); @@ -51,6 +55,10 @@ BOOLEAN CIVSHMEMSaveData::RequestMMAP() { //============================================================================= void CIVSHMEMSaveData::ReleaseMMAP() { + if (!m_ivshmem.devObj) { + return; + } + IO_STATUS_BLOCK ioStatus = { 0 }; KEVENT event; KeInitializeEvent(&event, NotificationEvent, FALSE);