On Sun, Nov 30, 2014 at 3:51 AM, Marcus Meissner <marcus@jet.franken.de> wrote:

Some work I have left lying around after trying to get a copy protection to work.

(Stopped at how to get IoGetAttachedDevice deliver the cdrom device created by mountmgr.sys
which lives in a different address space.)

Ciao, Marcus
---
 dlls/ntoskrnl.exe/ntoskrnl.c        | 51 ++++++++++++++++++++++++++++++++++++-
 dlls/ntoskrnl.exe/ntoskrnl.exe.spec |  4 +--
 2 files changed, 52 insertions(+), 3 deletions(-)

@@ -733,9 +770,21 @@ NTSTATUS  WINAPI IoGetDeviceObjectPointer( UNICODE_STRING *name, ACCESS_MASK acc
 {
     FIXME( "stub: %s %x %p %p\n", debugstr_us(name), access, file, device );

-    return STATUS_NOT_IMPLEMENTED;
+    *file  = NULL;
+    *device  = NULL;
+
+    return /*STATUS_NOT_IMPLEMENTED*/STATUS_SUCCESS;

Looks like a debugging leftover you forgot to remove.