Skip to content

Commit

Permalink
Merge pull request #42 from martinellimarco/master
Browse files Browse the repository at this point in the history
Fix for #41 - BSOD if no IVSHMEM device is found but UseIVSHMEM is set
  • Loading branch information
martinellimarco committed May 11, 2019
2 parents b2b5767 + e7b6360 commit 964d477
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Scream/ivshmemsavedata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@

//=============================================================================
BOOLEAN CIVSHMEMSaveData::RequestMMAP() {
if (!m_ivshmem.devObj) {
return FALSE;
}

IO_STATUS_BLOCK ioStatus = { 0 };
KEVENT event;
KeInitializeEvent(&event, NotificationEvent, FALSE);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 964d477

Please sign in to comment.