From 9a44ac663caf990e3f7ea3be1c6fba1dfbfade3c Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Wed, 24 Aug 2011 01:52:12 +0000 Subject: [PATCH] [HAL] * Fix a couple bad sizeof(). svn path=/trunk/; revision=53402 --- reactos/hal/halx86/generic/usage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/hal/halx86/generic/usage.c b/reactos/hal/halx86/generic/usage.c index 099a9e79648..b1e3ace6241 100644 --- a/reactos/hal/halx86/generic/usage.c +++ b/reactos/hal/halx86/generic/usage.c @@ -132,7 +132,7 @@ HalpBuildPartialFromIdt(IN ULONG Entry, RawDescriptor->u.Interrupt.Affinity = HalpActiveProcessors; /* The translated copy is identical */ - RtlCopyMemory(TranslatedDescriptor, RawDescriptor, sizeof(TranslatedDescriptor)); + RtlCopyMemory(TranslatedDescriptor, RawDescriptor, sizeof(PCM_PARTIAL_RESOURCE_DESCRIPTOR)); /* But the vector and IRQL must be set correctly */ TranslatedDescriptor->u.Interrupt.Vector = Entry; @@ -180,7 +180,7 @@ HalpBuildPartialFromAddress(IN INTERFACE_TYPE Interface, } /* Make an identical copy to begin with */ - RtlCopyMemory(TranslatedDescriptor, RawDescriptor, sizeof(TranslatedDescriptor)); + RtlCopyMemory(TranslatedDescriptor, RawDescriptor, sizeof(PCM_PARTIAL_RESOURCE_DESCRIPTOR)); /* Check what this is */ if (RawDescriptor->Type == CmResourceTypePort)