- Add missing PAGED_CODE (thanks thomas)
svn path=/trunk/; revision=71863
PFILE_OBJECT_EXTENSION FileObjectExtension;
ASSERT(FALSE);
- /* The extension buffer comes directly after the file object */
- FileObjectExtension = (PFILE_OBJECT_EXTENSION)(FileObject + 1);
+ /* Cast the buffer to something we understand */
+ FileObjectExtension = FileObject->FileObjectExtension;
/* Check if have a replacement top level device */
if (FileObjectExtension->TopDeviceObjectHint)
FileObject->Flags |= FO_FILE_OBJECT_HAS_EXTENSION;
FileObjectExtension = (PFILE_OBJECT_EXTENSION)(FileObject + 1);
+ FileObject->FileObjectExtension = FileObjectExtension;
/* Add the top level device which we'll send the request to */
if (OpenPacket->InternalFlags & IOP_USE_TOP_LEVEL_DEVICE_HINT)
{
ULONG Flags = 0;
+ PAGED_CODE();
+
/* Check if we were passed a device to send the create request to*/
if (DeviceObject)
{