Skip to content

Commit

Permalink
Fixed a bug with the sharing permissions in XisoIrpCreate
Browse files Browse the repository at this point in the history
  • Loading branch information
ergo720 committed Aug 7, 2024
1 parent b2b7c4d commit 0f35315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nboxkrnl/io/cdrom/xiso.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,10 @@ NTSTATUS XBOXAPI XisoIrpCreate(PDEVICE_OBJECT DeviceObject, PIRP Irp)
FileInfo->RefCounter = 1;
strncpy(FileInfo->FileName, FileName.Buffer, FileName.Length);
XisoInsertFile(VolumeExtension, FileInfo);
SHARE_ACCESS ShareAccess;
IoSetShareAccess(DesiredAccess, 0, FileObject, &ShareAccess);
}

SHARE_ACCESS ShareAccess;
IoSetShareAccess(DesiredAccess, 0, FileObject, &ShareAccess);
FileObject->FsContext2 = FileInfo;

// Finally submit the I/O request to the host to do the actual work
Expand Down

0 comments on commit 0f35315

Please sign in to comment.