From b2f6c15aa4b44ec8a670de88fe5d577d010805fe Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Sat, 31 Jan 2004 17:26:38 +0000 Subject: [PATCH] empty REGISTRY directory svn path=/trunk/; revision=7942 --- reactos/subsys/system/explorer/shell/ntobjfs.cpp | 12 +++++++++--- reactos/subsys/system/explorer/shell/ntobjfs.h | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/reactos/subsys/system/explorer/shell/ntobjfs.cpp b/reactos/subsys/system/explorer/shell/ntobjfs.cpp index 0b55e939068..34ea5e8f6c2 100644 --- a/reactos/subsys/system/explorer/shell/ntobjfs.cpp +++ b/reactos/subsys/system/explorer/shell/ntobjfs.cpp @@ -267,10 +267,11 @@ void NtObjDirectory::read_directory(int scan_flags) } else if (type == KEY_OBJECT) { -#if 0 ///@todo mount registry hives - TLVEntry *entry, **pnext = pchild(); - TLVController* tlvctrlr = system()->tlvctrlr(); + w32fd.dwFileAttributes |= FILE_ATTRIBUTE_DIRECTORY; + entry = new NtObjDirectory(this, buffer); + +#if 0 ///@todo mount registry hives *pnext = entry = new RegRootEntry(tlvctrlr, HKEY_CURRENT_USER); *entry->pparent() = this; @@ -511,3 +512,8 @@ bool NtObjEntry::get_path(PTSTR path) const return true; } + +BOOL NtObjEntry::launch_entry(HWND hwnd, UINT nCmdShow) +{ + return FALSE; +} diff --git a/reactos/subsys/system/explorer/shell/ntobjfs.h b/reactos/subsys/system/explorer/shell/ntobjfs.h index 176b25a9d69..43d2334d87e 100644 --- a/reactos/subsys/system/explorer/shell/ntobjfs.h +++ b/reactos/subsys/system/explorer/shell/ntobjfs.h @@ -98,6 +98,7 @@ protected: NtObjEntry(OBJECT_TYPE type) : Entry(ET_NTOBJS), _type(type) {} virtual bool get_path(PTSTR path) const; + virtual BOOL launch_entry(HWND hwnd, UINT nCmdShow); };