https://git.reactos.org/?p=reactos.git;a=commitdiff;h=09abc443b1de48b19f786e8eee498547b551ffc7
commit 09abc443b1de48b19f786e8eee498547b551ffc7 Author: Victor Perevertkin <vic...@perevertkin.ru> AuthorDate: Sat Aug 17 22:15:04 2019 +0300 Commit: Victor Perevertkin <vic...@perevertkin.ru> CommitDate: Tue Aug 20 15:05:47 2019 +0200 [VIDEOPRT] Fix RtlCopyMemory sizeof usage Spotted by GCC8 --- win32ss/drivers/videoprt/int10.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win32ss/drivers/videoprt/int10.c b/win32ss/drivers/videoprt/int10.c index 35452501421..f83ed0f3dd2 100644 --- a/win32ss/drivers/videoprt/int10.c +++ b/win32ss/drivers/videoprt/int10.c @@ -399,7 +399,7 @@ VideoPortInt10( } /* Copy arguments to other format */ - RtlCopyMemory(&Int10BiosArguments, BiosArguments, sizeof(BiosArguments)); + RtlCopyMemory(&Int10BiosArguments, BiosArguments, sizeof(*BiosArguments)); Int10BiosArguments.SegDs = 0; Int10BiosArguments.SegEs = 0; @@ -407,7 +407,7 @@ VideoPortInt10( Status = IntInt10CallBios(NULL, &Int10BiosArguments); /* Copy results back */ - RtlCopyMemory(BiosArguments, &Int10BiosArguments, sizeof(BiosArguments)); + RtlCopyMemory(BiosArguments, &Int10BiosArguments, sizeof(*BiosArguments)); return Status; }