New macros InitializeUnicodeString(), RtlInitUnicodeStringFromLiteral() and UNICODE_S...
[reactos.git] / reactos / drivers / fs / template / template.c
index 93676cb..dbffa14 100644 (file)
@@ -16,7 +16,7 @@
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: template.c,v 1.3 2002/05/23 09:52:56 ekohl Exp $
+/* $Id: template.c,v 1.4 2002/08/20 20:37:07 hyperion Exp $
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -249,14 +249,12 @@ DriverEntry(PDRIVER_OBJECT _DriverObject,
 {
   PDEVICE_OBJECT DeviceObject;
   NTSTATUS Status;
-  UNICODE_STRING DeviceName;
+  UNICODE_STRING DeviceName = UNICODE_STRING_INITIALIZER(L"\\Device\\BareFsd");
 
   DbgPrint("Bare FSD Template 0.0.1\n");
 
   DriverObject = _DriverObject;
 
-  RtlInitUnicodeString(&DeviceName,
-                      L"\\Device\\BareFsd");
   Status = IoCreateDevice(DriverObject,
                          0,
                          &DeviceName,