Skip to content

Commit

Permalink
Kernel - Format pervious commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Liryna committed Jan 15, 2024
1 parent 325409c commit eb557dc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sys/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,14 +487,14 @@ PMOUNT_ENTRY FindMountEntry(__in PDOKAN_GLOBAL DokanGlobal,
PDOKAN_CONTROL dokanControlLookup = NULL;
BOOLEAN useMountPoint = (DokanControl->MountPoint[0] != L'\0');
BOOLEAN isSessionIdMatch = FALSE;
BOOLEAN LockMountEntryList =
BOOLEAN lockMountEntryList =
!ExIsResourceAcquiredExclusiveLite(&DokanGlobal->MountPointListLock);
DOKAN_INIT_LOGGER(logger, DokanGlobal->DeviceObject->DriverObject, 0);

DokanLogInfo(&logger, L"Finding mount entry; mount point = %s.",
DokanControl->MountPoint);

if (LockMountEntryList) {
if (lockMountEntryList) {
ExAcquireResourceExclusiveLite(&DokanGlobal->MountPointListLock, TRUE);
}
for (listEntry = DokanGlobal->MountPointList.Flink;
Expand Down Expand Up @@ -538,7 +538,7 @@ PMOUNT_ENTRY FindMountEntry(__in PDOKAN_GLOBAL DokanGlobal,
DokanLogInfo(&logger, L"No mount entry found.");
}

if (LockMountEntryList) {
if (lockMountEntryList) {
ExReleaseResourceLite(&DokanGlobal->MountPointListLock);
}
return mountEntry;
Expand Down Expand Up @@ -578,7 +578,8 @@ DokanGetMountPointList(__in PREQUEST_CONTEXT RequestContext) {
USHORT i = 0;

__try {
ExAcquireResourceExclusiveLite(&RequestContext->DokanGlobal->MountPointListLock, TRUE);
ExAcquireResourceExclusiveLite(
&RequestContext->DokanGlobal->MountPointListLock, TRUE);
dokanMountPointInfo = (PDOKAN_MOUNT_POINT_INFO)
RequestContext->Irp->AssociatedIrp.SystemBuffer;
for (listEntry = RequestContext->DokanGlobal->MountPointList.Flink;
Expand Down

0 comments on commit eb557dc

Please sign in to comment.