- 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:
Alex Ionescu 2005-09-04 22:33:28 +00:00
parent d41491ef47
commit f069c69225
10 changed files with 13 additions and 14 deletions

View file

@ -9,8 +9,6 @@
/* INCLUDES ******************************************************************/ /* INCLUDES ******************************************************************/
#include <ntifs.h>
#include <ndk/iotypes.h>
#include "msfs.h" #include "msfs.h"
#define NDEBUG #define NDEBUG
@ -107,7 +105,7 @@ NTSTATUS STDCALL
MsfsCreateMailslot(PDEVICE_OBJECT DeviceObject, MsfsCreateMailslot(PDEVICE_OBJECT DeviceObject,
PIRP Irp) PIRP Irp)
{ {
PIO_STACK_LOCATION IoStack; PEXTENDED_IO_STACK_LOCATION IoStack;
PFILE_OBJECT FileObject; PFILE_OBJECT FileObject;
PMSFS_DEVICE_EXTENSION DeviceExtension; PMSFS_DEVICE_EXTENSION DeviceExtension;
PMSFS_MAILSLOT Mailslot; PMSFS_MAILSLOT Mailslot;
@ -119,7 +117,7 @@ MsfsCreateMailslot(PDEVICE_OBJECT DeviceObject,
DPRINT("MsfsCreateMailslot(DeviceObject %p Irp %p)\n", DeviceObject, Irp); DPRINT("MsfsCreateMailslot(DeviceObject %p Irp %p)\n", DeviceObject, Irp);
IoStack = IoGetCurrentIrpStackLocation(Irp); IoStack = (PEXTENDED_IO_STACK_LOCATION)IoGetCurrentIrpStackLocation(Irp);
DeviceExtension = DeviceObject->DeviceExtension; DeviceExtension = DeviceObject->DeviceExtension;
FileObject = IoStack->FileObject; FileObject = IoStack->FileObject;
Buffer = IoStack->Parameters.CreateMailslot.Parameters; Buffer = IoStack->Parameters.CreateMailslot.Parameters;

View file

@ -9,7 +9,6 @@
/* INCLUDES ******************************************************************/ /* INCLUDES ******************************************************************/
#include <ntifs.h>
#include "msfs.h" #include "msfs.h"
#define NDEBUG #define NDEBUG

View file

@ -9,10 +9,9 @@
/* INCLUDES ******************************************************************/ /* INCLUDES ******************************************************************/
#include <ntifs.h>
#include "msfs.h" #include "msfs.h"
//#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>

View file

@ -9,7 +9,6 @@
/* INCLUDES ******************************************************************/ /* INCLUDES ******************************************************************/
#include <ntifs.h>
#include "msfs.h" #include "msfs.h"
#define NDEBUG #define NDEBUG

View file

@ -1,6 +1,9 @@
#ifndef __SERVICES_FS_MS_MSFS_H #ifndef __SERVICES_FS_MS_MSFS_H
#define __SERVICES_FS_MS_MSFS_H #define __SERVICES_FS_MS_MSFS_H
#include <ntifs.h>
#include <ndk/iotypes.h>
typedef struct _MSFS_DEVICE_EXTENSION typedef struct _MSFS_DEVICE_EXTENSION
{ {
LIST_ENTRY MailslotListHead; LIST_ENTRY MailslotListHead;

View file

@ -9,4 +9,5 @@
<file>msfs.c</file> <file>msfs.c</file>
<file>rw.c</file> <file>rw.c</file>
<file>msfs.rc</file> <file>msfs.rc</file>
<pch>msfs.h</pch>
</module> </module>

View file

@ -9,7 +9,6 @@
/* INCLUDES ******************************************************************/ /* INCLUDES ******************************************************************/
#include <ntifs.h>
#include "msfs.h" #include "msfs.h"
#define NDEBUG #define NDEBUG

View file

@ -107,7 +107,7 @@ NTSTATUS STDCALL
NpfsCreate(PDEVICE_OBJECT DeviceObject, NpfsCreate(PDEVICE_OBJECT DeviceObject,
PIRP Irp) PIRP Irp)
{ {
PIO_STACK_LOCATION IoStack; PEXTENDED_IO_STACK_LOCATION IoStack;
PFILE_OBJECT FileObject; PFILE_OBJECT FileObject;
PNPFS_PIPE Pipe; PNPFS_PIPE Pipe;
PNPFS_FCB ClientFcb; PNPFS_FCB ClientFcb;
@ -118,7 +118,7 @@ NpfsCreate(PDEVICE_OBJECT DeviceObject,
DPRINT("NpfsCreate(DeviceObject %p Irp %p)\n", DeviceObject, Irp); DPRINT("NpfsCreate(DeviceObject %p Irp %p)\n", DeviceObject, Irp);
DeviceExt = (PNPFS_DEVICE_EXTENSION)DeviceObject->DeviceExtension; DeviceExt = (PNPFS_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
IoStack = IoGetCurrentIrpStackLocation(Irp); IoStack = (PEXTENDED_IO_STACK_LOCATION)IoGetCurrentIrpStackLocation(Irp);
FileObject = IoStack->FileObject; FileObject = IoStack->FileObject;
DPRINT("FileObject %p\n", FileObject); DPRINT("FileObject %p\n", FileObject);
DPRINT("FileName %wZ\n", &FileObject->FileName); DPRINT("FileName %wZ\n", &FileObject->FileName);
@ -307,7 +307,7 @@ NTSTATUS STDCALL
NpfsCreateNamedPipe(PDEVICE_OBJECT DeviceObject, NpfsCreateNamedPipe(PDEVICE_OBJECT DeviceObject,
PIRP Irp) PIRP Irp)
{ {
PIO_STACK_LOCATION IoStack; PEXTENDED_IO_STACK_LOCATION IoStack;
PFILE_OBJECT FileObject; PFILE_OBJECT FileObject;
PNPFS_DEVICE_EXTENSION DeviceExt; PNPFS_DEVICE_EXTENSION DeviceExt;
PNPFS_PIPE Pipe; PNPFS_PIPE Pipe;
@ -318,7 +318,7 @@ NpfsCreateNamedPipe(PDEVICE_OBJECT DeviceObject,
DPRINT("NpfsCreateNamedPipe(DeviceObject %p Irp %p)\n", DeviceObject, Irp); DPRINT("NpfsCreateNamedPipe(DeviceObject %p Irp %p)\n", DeviceObject, Irp);
DeviceExt = (PNPFS_DEVICE_EXTENSION)DeviceObject->DeviceExtension; DeviceExt = (PNPFS_DEVICE_EXTENSION)DeviceObject->DeviceExtension;
IoStack = IoGetCurrentIrpStackLocation(Irp); IoStack = (PEXTENDED_IO_STACK_LOCATION)IoGetCurrentIrpStackLocation(Irp);
FileObject = IoStack->FileObject; FileObject = IoStack->FileObject;
DPRINT("FileObject %p\n", FileObject); DPRINT("FileObject %p\n", FileObject);
DPRINT("Pipe name %wZ\n", &FileObject->FileName); DPRINT("Pipe name %wZ\n", &FileObject->FileName);

View file

@ -10,4 +10,5 @@
<file>rw.c</file> <file>rw.c</file>
<file>volume.c</file> <file>volume.c</file>
<file>npfs.rc</file> <file>npfs.rc</file>
<pch>npfs.h</pch>
</module> </module>

View file

@ -889,7 +889,7 @@ typedef struct _EXTENDED_IO_STACK_LOCATION
PFILE_OBJECT FileObject; PFILE_OBJECT FileObject;
PIO_COMPLETION_ROUTINE CompletionRoutine; PIO_COMPLETION_ROUTINE CompletionRoutine;
PVOID Context; PVOID Context;
} IO_STACK_LOCATION, *PIO_STACK_LOCATION; } EXTENDED_IO_STACK_LOCATION, *PEXTENDED_IO_STACK_LOCATION;
#if !defined(_ALPHA_) #if !defined(_ALPHA_)
#include <poppack.h> #include <poppack.h>
#endif #endif