From eb557dc4757a442421b53243b0fe8135115c3155 Mon Sep 17 00:00:00 2001 From: Liryna Date: Mon, 15 Jan 2024 13:29:53 -0500 Subject: [PATCH] Kernel - Format pervious commit --- sys/init.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sys/init.c b/sys/init.c index 1feecc33..24b69c02 100644 --- a/sys/init.c +++ b/sys/init.c @@ -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; @@ -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; @@ -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;