mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Terminate service name string.
svn path=/trunk/; revision=4210
This commit is contained in:
parent
e024154763
commit
9a9d96086b
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: loader.c,v 1.126 2003/02/03 11:52:46 gvg Exp $
|
||||
/* $Id: loader.c,v 1.127 2003/02/27 20:29:55 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -533,6 +533,7 @@ LdrInitializeBootStartDriver(PVOID ModuleLoadBase,
|
|||
Length = wcslen(Start);
|
||||
|
||||
wcsncpy(Buffer, Start, Length);
|
||||
Buffer[Length] = 0;
|
||||
RtlCreateUnicodeString(&DeviceNode->ServiceName, Buffer);
|
||||
|
||||
Status = IopInitializeDriver(ModuleObject->EntryPoint,
|
||||
|
|
Loading…
Reference in a new issue