Author: ekohl
Date: Sun Jan 3 23:44:10 2010
New Revision: 44922
URL:
http://svn.reactos.org/svn/reactos?rev=44922&view=rev
Log:
Coding-style fixes. No code changes.
Modified:
trunk/reactos/drivers/filesystems/mup/create.c
trunk/reactos/drivers/filesystems/mup/mup.c
Modified: trunk/reactos/drivers/filesystems/mup/create.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/mup/cr…
==============================================================================
--- trunk/reactos/drivers/filesystems/mup/create.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/mup/create.c [iso-8859-1] Sun Jan 3 23:44:10 2010
@@ -39,33 +39,33 @@
NTSTATUS NTAPI
MupCreate(PDEVICE_OBJECT DeviceObject,
- PIRP Irp)
+ PIRP Irp)
{
- PDEVICE_EXTENSION DeviceExt;
- PIO_STACK_LOCATION Stack;
- PFILE_OBJECT FileObject;
- NTSTATUS Status;
+ PDEVICE_EXTENSION DeviceExt;
+ PIO_STACK_LOCATION Stack;
+ PFILE_OBJECT FileObject;
+ NTSTATUS Status;
- DPRINT("MupCreate() called\n");
+ DPRINT("MupCreate() called\n");
- DeviceExt = DeviceObject->DeviceExtension;
- ASSERT(DeviceExt);
- Stack = IoGetCurrentIrpStackLocation (Irp);
- ASSERT(Stack);
+ DeviceExt = DeviceObject->DeviceExtension;
+ ASSERT(DeviceExt);
+ Stack = IoGetCurrentIrpStackLocation (Irp);
+ ASSERT(Stack);
- FileObject = Stack->FileObject;
+ FileObject = Stack->FileObject;
- DPRINT("FileName: '%wZ'\n", &FileObject->FileName);
+ DPRINT("FileName: '%wZ'\n", &FileObject->FileName);
- Status = STATUS_ACCESS_DENIED;
+ Status = STATUS_ACCESS_DENIED;
- Irp->IoStatus.Information = (NT_SUCCESS(Status)) ? FILE_OPENED : 0;
- Irp->IoStatus.Status = Status;
+ Irp->IoStatus.Information = (NT_SUCCESS(Status)) ? FILE_OPENED : 0;
+ Irp->IoStatus.Status = Status;
- IoCompleteRequest(Irp,
- IO_NO_INCREMENT);
+ IoCompleteRequest(Irp,
+ IO_NO_INCREMENT);
- return(Status);
+ return Status;
}
/* EOF */
Modified: trunk/reactos/drivers/filesystems/mup/mup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/mup/mu…
==============================================================================
--- trunk/reactos/drivers/filesystems/mup/mup.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/mup/mup.c [iso-8859-1] Sun Jan 3 23:44:10 2010
@@ -40,9 +40,6 @@
/* FUNCTIONS ****************************************************************/
-NTSTATUS NTAPI
-DriverEntry(PDRIVER_OBJECT DriverObject,
- PUNICODE_STRING RegistryPath)
/*
* FUNCTION: Called by the system to initalize the driver
* ARGUMENTS:
@@ -50,56 +47,59 @@
* RegistryPath = path to our configuration entries
* RETURNS: Success or failure
*/
+NTSTATUS NTAPI
+DriverEntry(PDRIVER_OBJECT DriverObject,
+ PUNICODE_STRING RegistryPath)
{
- PDEVICE_OBJECT DeviceObject;
- NTSTATUS Status;
- UNICODE_STRING DeviceName;
+ PDEVICE_OBJECT DeviceObject;
+ NTSTATUS Status;
+ UNICODE_STRING DeviceName;
- DPRINT("MUP 0.0.1\n");
+ DPRINT("MUP 0.0.1\n");
- RtlInitUnicodeString(&DeviceName,
- L"\\Device\\Mup");
- Status = IoCreateDevice(DriverObject,
- sizeof(DEVICE_EXTENSION),
- &DeviceName,
- FILE_DEVICE_MULTI_UNC_PROVIDER,
- 0,
- FALSE,
- &DeviceObject);
- if (!NT_SUCCESS(Status))
+ RtlInitUnicodeString(&DeviceName,
+ L"\\Device\\Mup");
+ Status = IoCreateDevice(DriverObject,
+ sizeof(DEVICE_EXTENSION),
+ &DeviceName,
+ FILE_DEVICE_MULTI_UNC_PROVIDER,
+ 0,
+ FALSE,
+ &DeviceObject);
+ if (!NT_SUCCESS(Status))
{
- return(Status);
+ return Status;
}
- /* Initialize driver data */
- DeviceObject->Flags |= DO_DIRECT_IO;
-// DriverObject->MajorFunction[IRP_MJ_CLOSE] = NtfsClose;
- DriverObject->MajorFunction[IRP_MJ_CREATE] = MupCreate;
- DriverObject->MajorFunction[IRP_MJ_CREATE_NAMED_PIPE] = MupCreate;
- DriverObject->MajorFunction[IRP_MJ_CREATE_MAILSLOT] = MupCreate;
-// DriverObject->MajorFunction[IRP_MJ_READ] = NtfsRead;
-// DriverObject->MajorFunction[IRP_MJ_WRITE] = NtfsWrite;
-// DriverObject->MajorFunction[IRP_MJ_FILE_SYSTEM_CONTROL] =
-// NtfsFileSystemControl;
-// DriverObject->MajorFunction[IRP_MJ_DIRECTORY_CONTROL] =
-// NtfsDirectoryControl;
-// DriverObject->MajorFunction[IRP_MJ_QUERY_INFORMATION] =
-// NtfsQueryInformation;
-// DriverObject->MajorFunction[IRP_MJ_QUERY_VOLUME_INFORMATION] =
-// NtfsQueryVolumeInformation;
-// DriverObject->MajorFunction[IRP_MJ_SET_VOLUME_INFORMATION] =
-// NtfsSetVolumeInformation;
+ /* Initialize driver data */
+ DeviceObject->Flags |= DO_DIRECT_IO;
+// DriverObject->MajorFunction[IRP_MJ_CLOSE] = NtfsClose;
+ DriverObject->MajorFunction[IRP_MJ_CREATE] = MupCreate;
+ DriverObject->MajorFunction[IRP_MJ_CREATE_NAMED_PIPE] = MupCreate;
+ DriverObject->MajorFunction[IRP_MJ_CREATE_MAILSLOT] = MupCreate;
+// DriverObject->MajorFunction[IRP_MJ_READ] = NtfsRead;
+// DriverObject->MajorFunction[IRP_MJ_WRITE] = NtfsWrite;
+// DriverObject->MajorFunction[IRP_MJ_FILE_SYSTEM_CONTROL] =
+// NtfsFileSystemControl;
+// DriverObject->MajorFunction[IRP_MJ_DIRECTORY_CONTROL] =
+// NtfsDirectoryControl;
+// DriverObject->MajorFunction[IRP_MJ_QUERY_INFORMATION] =
+// NtfsQueryInformation;
+// DriverObject->MajorFunction[IRP_MJ_QUERY_VOLUME_INFORMATION] =
+// NtfsQueryVolumeInformation;
+// DriverObject->MajorFunction[IRP_MJ_SET_VOLUME_INFORMATION] =
+// NtfsSetVolumeInformation;
- DriverObject->DriverUnload = NULL;
+ DriverObject->DriverUnload = NULL;
- /* Initialize global data */
-// DeviceExtensionNtfsGlobalData = DeviceObject->DeviceExtension;
-// RtlZeroMemory(NtfsGlobalData,
-// sizeof(NTFS_GLOBAL_DATA));
-// NtfsGlobalData->DriverObject = DriverObject;
-// NtfsGlobalData->DeviceObject = DeviceObject;
+ /* Initialize global data */
+// DeviceExtensionNtfsGlobalData = DeviceObject->DeviceExtension;
+// RtlZeroMemory(NtfsGlobalData,
+// sizeof(NTFS_GLOBAL_DATA));
+// NtfsGlobalData->DriverObject = DriverObject;
+// NtfsGlobalData->DeviceObject = DeviceObject;
- return(STATUS_SUCCESS);
+ return STATUS_SUCCESS;
}