mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 00:43:21 +00:00
[MOUNTMGR]
* Properly mark some unreferenced parameters as such. svn path=/trunk/; revision=59609
This commit is contained in:
parent
2aad33ae32
commit
9d669a5db2
|
@ -298,6 +298,9 @@ DeleteFromLocalDatabaseRoutine(IN PWSTR ValueName,
|
||||||
{
|
{
|
||||||
PMOUNTDEV_UNIQUE_ID UniqueId = Context;
|
PMOUNTDEV_UNIQUE_ID UniqueId = Context;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(ValueType);
|
||||||
|
UNREFERENCED_PARAMETER(EntryContext);
|
||||||
|
|
||||||
/* Ensure it matches, and delete */
|
/* Ensure it matches, and delete */
|
||||||
if ((UniqueId->UniqueIdLength == ValueLength) &&
|
if ((UniqueId->UniqueIdLength == ValueLength) &&
|
||||||
(RtlCompareMemory(UniqueId->UniqueId, ValueData, ValueLength) ==
|
(RtlCompareMemory(UniqueId->UniqueId, ValueData, ValueLength) ==
|
||||||
|
@ -364,6 +367,7 @@ VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
ReconcileThisDatabaseWithMasterWorker(IN PVOID Parameter)
|
ReconcileThisDatabaseWithMasterWorker(IN PVOID Parameter)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(Parameter);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -386,6 +390,8 @@ WorkerThread(IN PDEVICE_OBJECT DeviceObject,
|
||||||
PDEVICE_EXTENSION DeviceExtension;
|
PDEVICE_EXTENSION DeviceExtension;
|
||||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(DeviceObject);
|
||||||
|
|
||||||
InitializeObjectAttributes(&ObjectAttributes,
|
InitializeObjectAttributes(&ObjectAttributes,
|
||||||
&SafeVolumes,
|
&SafeVolumes,
|
||||||
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
|
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
|
||||||
|
@ -509,6 +515,8 @@ QueryVolumeName(IN HANDLE RootDirectory,
|
||||||
PFILE_NAME_INFORMATION FileNameInfo;
|
PFILE_NAME_INFORMATION FileNameInfo;
|
||||||
PREPARSE_DATA_BUFFER ReparseDataBuffer;
|
PREPARSE_DATA_BUFFER ReparseDataBuffer;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(ReparsePointInformation);
|
||||||
|
|
||||||
if (!FileName)
|
if (!FileName)
|
||||||
{
|
{
|
||||||
InitializeObjectAttributes(&ObjectAttributes,
|
InitializeObjectAttributes(&ObjectAttributes,
|
||||||
|
@ -902,6 +910,8 @@ MigrateRemoteDatabaseWorker(IN PDEVICE_OBJECT DeviceObject,
|
||||||
OBJECT_ATTRIBUTES ObjectAttributes, MigrateAttributes;
|
OBJECT_ATTRIBUTES ObjectAttributes, MigrateAttributes;
|
||||||
#define TEMP_BUFFER_SIZE 0x200
|
#define TEMP_BUFFER_SIZE 0x200
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(DeviceObject);
|
||||||
|
|
||||||
/* Extract context */
|
/* Extract context */
|
||||||
WorkItem = Context;
|
WorkItem = Context;
|
||||||
DeviceInformation = WorkItem->DeviceInformation;
|
DeviceInformation = WorkItem->DeviceInformation;
|
||||||
|
@ -1220,6 +1230,10 @@ QueryUniqueIdQueryRoutine(IN PWSTR ValueName,
|
||||||
PMOUNTDEV_UNIQUE_ID IntUniqueId;
|
PMOUNTDEV_UNIQUE_ID IntUniqueId;
|
||||||
PMOUNTDEV_UNIQUE_ID * UniqueId;
|
PMOUNTDEV_UNIQUE_ID * UniqueId;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(ValueName);
|
||||||
|
UNREFERENCED_PARAMETER(ValueType);
|
||||||
|
UNREFERENCED_PARAMETER(EntryContext);
|
||||||
|
|
||||||
/* Sanity check */
|
/* Sanity check */
|
||||||
if (ValueLength >= 0x10000)
|
if (ValueLength >= 0x10000)
|
||||||
{
|
{
|
||||||
|
@ -1464,6 +1478,8 @@ DeleteDriveLetterRoutine(IN PWSTR ValueName,
|
||||||
PMOUNTDEV_UNIQUE_ID UniqueId;
|
PMOUNTDEV_UNIQUE_ID UniqueId;
|
||||||
UNICODE_STRING RegistryEntry;
|
UNICODE_STRING RegistryEntry;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(EntryContext);
|
||||||
|
|
||||||
if (ValueType != REG_BINARY)
|
if (ValueType != REG_BINARY)
|
||||||
{
|
{
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
|
@ -1527,6 +1543,8 @@ DeleteNoDriveLetterEntryRoutine(IN PWSTR ValueName,
|
||||||
{
|
{
|
||||||
PMOUNTDEV_UNIQUE_ID UniqueId = Context;
|
PMOUNTDEV_UNIQUE_ID UniqueId = Context;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(EntryContext);
|
||||||
|
|
||||||
/* Ensure we have correct input */
|
/* Ensure we have correct input */
|
||||||
if (ValueName[0] != L'#' || ValueType != REG_BINARY ||
|
if (ValueName[0] != L'#' || ValueType != REG_BINARY ||
|
||||||
UniqueId->UniqueIdLength != ValueLength)
|
UniqueId->UniqueIdLength != ValueLength)
|
||||||
|
|
|
@ -292,6 +292,8 @@ MountMgrCheckUnprocessedVolumes(IN PDEVICE_EXTENSION DeviceExtension,
|
||||||
PDEVICE_INFORMATION DeviceInformation;
|
PDEVICE_INFORMATION DeviceInformation;
|
||||||
NTSTATUS ArrivalStatus, Status = STATUS_SUCCESS;
|
NTSTATUS ArrivalStatus, Status = STATUS_SUCCESS;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(Irp);
|
||||||
|
|
||||||
/* No offline volumes, nothing more to do */
|
/* No offline volumes, nothing more to do */
|
||||||
if (IsListEmpty(&(DeviceExtension->OfflineDeviceListHead)))
|
if (IsListEmpty(&(DeviceExtension->OfflineDeviceListHead)))
|
||||||
{
|
{
|
||||||
|
@ -690,6 +692,10 @@ MountMgrQuerySystemVolumeNameQueryRoutine(IN PWSTR ValueName,
|
||||||
UNICODE_STRING ValueString;
|
UNICODE_STRING ValueString;
|
||||||
PUNICODE_STRING SystemVolumeName;
|
PUNICODE_STRING SystemVolumeName;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(ValueName);
|
||||||
|
UNREFERENCED_PARAMETER(ValueLength);
|
||||||
|
UNREFERENCED_PARAMETER(EntryContext);
|
||||||
|
|
||||||
if (ValueType != REG_SZ)
|
if (ValueType != REG_SZ)
|
||||||
{
|
{
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
|
@ -819,6 +825,8 @@ NTSTATUS
|
||||||
MountMgrQueryDosVolumePath(IN PDEVICE_EXTENSION DeviceExtension,
|
MountMgrQueryDosVolumePath(IN PDEVICE_EXTENSION DeviceExtension,
|
||||||
IN PIRP Irp)
|
IN PIRP Irp)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(DeviceExtension);
|
||||||
|
UNREFERENCED_PARAMETER(Irp);
|
||||||
return STATUS_NOT_IMPLEMENTED;
|
return STATUS_NOT_IMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -826,6 +834,8 @@ NTSTATUS
|
||||||
MountMgrQueryDosVolumePaths(IN PDEVICE_EXTENSION DeviceExtension,
|
MountMgrQueryDosVolumePaths(IN PDEVICE_EXTENSION DeviceExtension,
|
||||||
IN PIRP Irp)
|
IN PIRP Irp)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(DeviceExtension);
|
||||||
|
UNREFERENCED_PARAMETER(Irp);
|
||||||
return STATUS_NOT_IMPLEMENTED;
|
return STATUS_NOT_IMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1460,6 +1470,9 @@ MountMgrVolumeMountPointCreated(IN PDEVICE_EXTENSION DeviceExtension,
|
||||||
IN PIRP Irp,
|
IN PIRP Irp,
|
||||||
IN NTSTATUS LockStatus)
|
IN NTSTATUS LockStatus)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(DeviceExtension);
|
||||||
|
UNREFERENCED_PARAMETER(Irp);
|
||||||
|
UNREFERENCED_PARAMETER(LockStatus);
|
||||||
return STATUS_NOT_IMPLEMENTED;
|
return STATUS_NOT_IMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1468,6 +1481,9 @@ MountMgrVolumeMountPointDeleted(IN PDEVICE_EXTENSION DeviceExtension,
|
||||||
IN PIRP Irp,
|
IN PIRP Irp,
|
||||||
IN NTSTATUS LockStatus)
|
IN NTSTATUS LockStatus)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(DeviceExtension);
|
||||||
|
UNREFERENCED_PARAMETER(Irp);
|
||||||
|
UNREFERENCED_PARAMETER(LockStatus);
|
||||||
return STATUS_NOT_IMPLEMENTED;
|
return STATUS_NOT_IMPLEMENTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -816,6 +816,8 @@ MountMgrUnload(IN struct _DRIVER_OBJECT *DriverObject)
|
||||||
PDEVICE_INFORMATION DeviceInformation;
|
PDEVICE_INFORMATION DeviceInformation;
|
||||||
PSAVED_LINK_INFORMATION SavedLinkInformation;
|
PSAVED_LINK_INFORMATION SavedLinkInformation;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(DriverObject);
|
||||||
|
|
||||||
/* Don't get notification any longer */
|
/* Don't get notification any longer */
|
||||||
IoUnregisterShutdownNotification(gdeviceObject);
|
IoUnregisterShutdownNotification(gdeviceObject);
|
||||||
|
|
||||||
|
@ -1663,6 +1665,8 @@ MountMgrCreateClose(IN PDEVICE_OBJECT DeviceObject,
|
||||||
PIO_STACK_LOCATION Stack;
|
PIO_STACK_LOCATION Stack;
|
||||||
NTSTATUS Status = STATUS_SUCCESS;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(DeviceObject);
|
||||||
|
|
||||||
Stack = IoGetCurrentIrpStackLocation(Irp);
|
Stack = IoGetCurrentIrpStackLocation(Irp);
|
||||||
|
|
||||||
/* Allow driver opening for communication
|
/* Allow driver opening for communication
|
||||||
|
@ -1688,6 +1692,8 @@ NTAPI
|
||||||
MountMgrCancel(IN PDEVICE_OBJECT DeviceObject,
|
MountMgrCancel(IN PDEVICE_OBJECT DeviceObject,
|
||||||
IN PIRP Irp)
|
IN PIRP Irp)
|
||||||
{
|
{
|
||||||
|
UNREFERENCED_PARAMETER(DeviceObject);
|
||||||
|
|
||||||
RemoveEntryList(&(Irp->Tail.Overlay.ListEntry));
|
RemoveEntryList(&(Irp->Tail.Overlay.ListEntry));
|
||||||
|
|
||||||
IoReleaseCancelSpinLock(Irp->CancelIrql);
|
IoReleaseCancelSpinLock(Irp->CancelIrql);
|
||||||
|
|
|
@ -511,6 +511,8 @@ UniqueIdChangeNotifyWorker(IN PDEVICE_OBJECT DeviceObject,
|
||||||
PMOUNTDEV_UNIQUE_ID OldUniqueId, NewUniqueId;
|
PMOUNTDEV_UNIQUE_ID OldUniqueId, NewUniqueId;
|
||||||
PMOUNTDEV_UNIQUE_ID_CHANGE_NOTIFY_OUTPUT UniqueIdChange;
|
PMOUNTDEV_UNIQUE_ID_CHANGE_NOTIFY_OUTPUT UniqueIdChange;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(DeviceObject);
|
||||||
|
|
||||||
/* Validate worker */
|
/* Validate worker */
|
||||||
if (!NT_SUCCESS(WorkItem->Irp->IoStatus.Status))
|
if (!NT_SUCCESS(WorkItem->Irp->IoStatus.Status))
|
||||||
{
|
{
|
||||||
|
@ -567,6 +569,9 @@ UniqueIdChangeNotifyCompletion(IN PDEVICE_OBJECT DeviceObject,
|
||||||
{
|
{
|
||||||
PUNIQUE_ID_WORK_ITEM WorkItem = Context;
|
PUNIQUE_ID_WORK_ITEM WorkItem = Context;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(DeviceObject);
|
||||||
|
UNREFERENCED_PARAMETER(Irp);
|
||||||
|
|
||||||
/* Simply queue the work item */
|
/* Simply queue the work item */
|
||||||
IoQueueWorkItem(WorkItem->WorkItem,
|
IoQueueWorkItem(WorkItem->WorkItem,
|
||||||
UniqueIdChangeNotifyWorker,
|
UniqueIdChangeNotifyWorker,
|
||||||
|
|
|
@ -119,6 +119,8 @@ GlobalCreateSymbolicLink(IN PUNICODE_STRING DosName,
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
UNICODE_STRING GlobalName;
|
UNICODE_STRING GlobalName;
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(DeviceName);
|
||||||
|
|
||||||
/* First create the global string */
|
/* First create the global string */
|
||||||
Status = CreateStringWithGlobal(DosName, &GlobalName);
|
Status = CreateStringWithGlobal(DosName, &GlobalName);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
|
@ -529,6 +531,8 @@ QuerySymbolicLinkNamesFromStorage(IN PDEVICE_EXTENSION DeviceExtension,
|
||||||
BOOLEAN WriteNew;
|
BOOLEAN WriteNew;
|
||||||
RTL_QUERY_REGISTRY_TABLE QueryTable[2];
|
RTL_QUERY_REGISTRY_TABLE QueryTable[2];
|
||||||
|
|
||||||
|
UNREFERENCED_PARAMETER(DeviceExtension);
|
||||||
|
|
||||||
/* First of all, count links */
|
/* First of all, count links */
|
||||||
RtlZeroMemory(QueryTable, sizeof(QueryTable));
|
RtlZeroMemory(QueryTable, sizeof(QueryTable));
|
||||||
QueryTable[0].QueryRoutine = SymbolicLinkNamesFromUniqueIdCount;
|
QueryTable[0].QueryRoutine = SymbolicLinkNamesFromUniqueIdCount;
|
||||||
|
|
Loading…
Reference in a new issue