mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
- Fix typo in NDK
- Fix compilation of NPFS and MSFS and increase their compile speed by using PCH. svn path=/trunk/; revision=17647
This commit is contained in:
parent
d41491ef47
commit
f069c69225
10 changed files with 13 additions and 14 deletions
|
@ -9,8 +9,6 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <ntifs.h>
|
||||
#include <ndk/iotypes.h>
|
||||
#include "msfs.h"
|
||||
|
||||
#define NDEBUG
|
||||
|
@ -107,7 +105,7 @@ NTSTATUS STDCALL
|
|||
MsfsCreateMailslot(PDEVICE_OBJECT DeviceObject,
|
||||
PIRP Irp)
|
||||
{
|
||||
PIO_STACK_LOCATION IoStack;
|
||||
PEXTENDED_IO_STACK_LOCATION IoStack;
|
||||
PFILE_OBJECT FileObject;
|
||||
PMSFS_DEVICE_EXTENSION DeviceExtension;
|
||||
PMSFS_MAILSLOT Mailslot;
|
||||
|
@ -119,7 +117,7 @@ MsfsCreateMailslot(PDEVICE_OBJECT DeviceObject,
|
|||
|
||||
DPRINT("MsfsCreateMailslot(DeviceObject %p Irp %p)\n", DeviceObject, Irp);
|
||||
|
||||
IoStack = IoGetCurrentIrpStackLocation(Irp);
|
||||
IoStack = (PEXTENDED_IO_STACK_LOCATION)IoGetCurrentIrpStackLocation(Irp);
|
||||
DeviceExtension = DeviceObject->DeviceExtension;
|
||||
FileObject = IoStack->FileObject;
|
||||
Buffer = IoStack->Parameters.CreateMailslot.Parameters;
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <ntifs.h>
|
||||
#include "msfs.h"
|
||||
|
||||
#define NDEBUG
|
||||
|
|
|
@ -9,10 +9,9 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <ntifs.h>
|
||||
#include "msfs.h"
|
||||
|
||||
//#define NDEBUG
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <ntifs.h>
|
||||
#include "msfs.h"
|
||||
|
||||
#define NDEBUG
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
#ifndef __SERVICES_FS_MS_MSFS_H
|
||||
#define __SERVICES_FS_MS_MSFS_H
|
||||
|
||||
#include <ntifs.h>
|
||||
#include <ndk/iotypes.h>
|
||||
|
||||
typedef struct _MSFS_DEVICE_EXTENSION
|
||||
{
|
||||
LIST_ENTRY MailslotListHead;
|
||||
|
|
|
@ -9,4 +9,5 @@
|
|||
<file>msfs.c</file>
|
||||
<file>rw.c</file>
|
||||
<file>msfs.rc</file>
|
||||
<pch>msfs.h</pch>
|
||||
</module>
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <ntifs.h>
|
||||
#include "msfs.h"
|
||||
|
||||
#define NDEBUG
|
||||
|
|
|
@ -107,7 +107,7 @@ NTSTATUS STDCALL
|
|||
NpfsCreate(PDEVICE_OBJECT DeviceObject,
|
||||
PIRP Irp)
|
||||
{
|
||||
PIO_STACK_LOCATION IoStack;
|
||||
PEXTENDED_IO_STACK_LOCATION IoStack;
|
||||
PFILE_OBJECT FileObject;
|
||||
PNPFS_PIPE Pipe;
|
||||
PNPFS_FCB ClientFcb;
|
||||
|
@ -118,7 +118,7 @@ NpfsCreate(PDEVICE_OBJECT DeviceObject,
|
|||
DPRINT("NpfsCreate(DeviceObject %p Irp %p)\n", DeviceObject, Irp);
|
||||
|
||||
DeviceExt = (PNPFS_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
|
||||
IoStack = IoGetCurrentIrpStackLocation(Irp);
|
||||
IoStack = (PEXTENDED_IO_STACK_LOCATION)IoGetCurrentIrpStackLocation(Irp);
|
||||
FileObject = IoStack->FileObject;
|
||||
DPRINT("FileObject %p\n", FileObject);
|
||||
DPRINT("FileName %wZ\n", &FileObject->FileName);
|
||||
|
@ -307,7 +307,7 @@ NTSTATUS STDCALL
|
|||
NpfsCreateNamedPipe(PDEVICE_OBJECT DeviceObject,
|
||||
PIRP Irp)
|
||||
{
|
||||
PIO_STACK_LOCATION IoStack;
|
||||
PEXTENDED_IO_STACK_LOCATION IoStack;
|
||||
PFILE_OBJECT FileObject;
|
||||
PNPFS_DEVICE_EXTENSION DeviceExt;
|
||||
PNPFS_PIPE Pipe;
|
||||
|
@ -318,7 +318,7 @@ NpfsCreateNamedPipe(PDEVICE_OBJECT DeviceObject,
|
|||
DPRINT("NpfsCreateNamedPipe(DeviceObject %p Irp %p)\n", DeviceObject, Irp);
|
||||
|
||||
DeviceExt = (PNPFS_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
|
||||
IoStack = IoGetCurrentIrpStackLocation(Irp);
|
||||
IoStack = (PEXTENDED_IO_STACK_LOCATION)IoGetCurrentIrpStackLocation(Irp);
|
||||
FileObject = IoStack->FileObject;
|
||||
DPRINT("FileObject %p\n", FileObject);
|
||||
DPRINT("Pipe name %wZ\n", &FileObject->FileName);
|
||||
|
|
|
@ -10,4 +10,5 @@
|
|||
<file>rw.c</file>
|
||||
<file>volume.c</file>
|
||||
<file>npfs.rc</file>
|
||||
<pch>npfs.h</pch>
|
||||
</module>
|
||||
|
|
|
@ -889,7 +889,7 @@ typedef struct _EXTENDED_IO_STACK_LOCATION
|
|||
PFILE_OBJECT FileObject;
|
||||
PIO_COMPLETION_ROUTINE CompletionRoutine;
|
||||
PVOID Context;
|
||||
} IO_STACK_LOCATION, *PIO_STACK_LOCATION;
|
||||
} EXTENDED_IO_STACK_LOCATION, *PEXTENDED_IO_STACK_LOCATION;
|
||||
#if !defined(_ALPHA_)
|
||||
#include <poppack.h>
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue