mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Fixed a bug which skipped the first letter of a relative object path name.
svn path=/trunk/; revision=4676
This commit is contained in:
parent
0c6f80f830
commit
64ca9e3c34
1 changed files with 8 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: object.c,v 1.58 2003/02/25 16:49:08 ekohl Exp $
|
||||
/* $Id: object.c,v 1.59 2003/05/11 19:41:22 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -242,6 +242,7 @@ ObCreateObject(OUT PHANDLE Handle,
|
|||
POBJECT_HEADER ParentHeader = NULL;
|
||||
NTSTATUS Status;
|
||||
BOOLEAN ObjectAttached = FALSE;
|
||||
PWCHAR NamePtr;
|
||||
|
||||
assert_irql(APC_LEVEL);
|
||||
|
||||
|
@ -288,9 +289,14 @@ ObCreateObject(OUT PHANDLE Handle,
|
|||
ParentHeader->ObjectType == ObDirectoryType &&
|
||||
RemainingPath.Buffer != NULL)
|
||||
{
|
||||
NamePtr = RemainingPath.Buffer;
|
||||
if (*NamePtr == L'\\')
|
||||
NamePtr++;
|
||||
|
||||
ObpAddEntryDirectory(Parent,
|
||||
Header,
|
||||
RemainingPath.Buffer+1);
|
||||
NamePtr);
|
||||
|
||||
ObjectAttached = TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue