[aoe] Fix UNICODE_STRING initialization
authorShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Sun, 2 Jan 2011 02:25:31 +0000 (21:25 -0500)
committerShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Sun, 2 Jan 2011 02:25:31 +0000 (21:25 -0500)
src/aoe/bus.c

index e72eb96..fc7ae45 100644 (file)
@@ -53,13 +53,13 @@ void AoeBusFree(void);
 /* Globals. */
 WV_S_BUS_T AoeBusMain = {0};
 static UNICODE_STRING AoeBusName_ = {
-    sizeof AOE_M_BUS_NAME_,
-    sizeof AOE_M_BUS_NAME_,
+    sizeof AOE_M_BUS_NAME_ - sizeof (WCHAR),
+    sizeof AOE_M_BUS_NAME_ - sizeof (WCHAR),
     AOE_M_BUS_NAME_
   };
 static UNICODE_STRING AoeBusDosname_ = {
-    sizeof AOE_M_BUS_DOSNAME_,
-    sizeof AOE_M_BUS_DOSNAME_,
+    sizeof AOE_M_BUS_DOSNAME_ - sizeof (WCHAR),
+    sizeof AOE_M_BUS_DOSNAME_ - sizeof (WCHAR),
     AOE_M_BUS_DOSNAME_
   };
 const WV_S_DRIVER_DUMMY_IDS * AoeBusDummyIds;