[BOOTVID] Don't increment an uninitialized and unused variable, bug #5103
[reactos.git] / reactos / drivers / base / bootvid / i386 / bootvid.c
index f6dce1c..08d0dc1 100644 (file)
@@ -155,7 +155,7 @@ VgaInterpretCmdStream(IN PUSHORT CmdStream)
                     if (!ShortValue) continue;
 
                     /* Loop the cmd array */
-                    for (; Count; Count--, CmdStream++, Value++)
+                    for (; Count; Count--, CmdStream++)
                     {
                         /* Get the byte we're writing */
                         ShortValue += (*CmdStream) << 8;
@@ -394,6 +394,7 @@ VidInitialize(IN BOOLEAN SetMode)
         {
             /* Translate the VGA Memory Address */
             VgaAddress.LowPart = 0xA0000;
+            VgaAddress.HighPart = 0;
             AddressSpace = 0;
             Result = HalFindBusAddressTranslation(VgaAddress,
                                                   &AddressSpace,