[VIDEOPRT] Fix RtlCopyMemory sizeof usage
authorVictor Perevertkin <victor@perevertkin.ru>
Sat, 17 Aug 2019 19:15:04 +0000 (22:15 +0300)
committerVictor Perevertkin <victor@perevertkin.ru>
Tue, 20 Aug 2019 13:05:47 +0000 (15:05 +0200)
Spotted by GCC8

win32ss/drivers/videoprt/int10.c

index 3545250..f83ed0f 100644 (file)
@@ -399,7 +399,7 @@ VideoPortInt10(
     }
 
     /* Copy arguments to other format */
     }
 
     /* Copy arguments to other format */
-    RtlCopyMemory(&Int10BiosArguments, BiosArguments, sizeof(BiosArguments));
+    RtlCopyMemory(&Int10BiosArguments, BiosArguments, sizeof(*BiosArguments));
     Int10BiosArguments.SegDs = 0;
     Int10BiosArguments.SegEs = 0;
 
     Int10BiosArguments.SegDs = 0;
     Int10BiosArguments.SegEs = 0;
 
@@ -407,7 +407,7 @@ VideoPortInt10(
     Status = IntInt10CallBios(NULL, &Int10BiosArguments);
 
     /* Copy results back */
     Status = IntInt10CallBios(NULL, &Int10BiosArguments);
 
     /* Copy results back */
-    RtlCopyMemory(BiosArguments, &Int10BiosArguments, sizeof(BiosArguments));
+    RtlCopyMemory(BiosArguments, &Int10BiosArguments, sizeof(*BiosArguments));
 
     return Status;
 }
 
     return Status;
 }