Author: akhaldi Date: Wed Aug 24 01:52:12 2011 New Revision: 53402
URL: http://svn.reactos.org/svn/reactos?rev=53402&view=rev Log: [HAL] * Fix a couple bad sizeof().
Modified: trunk/reactos/hal/halx86/generic/usage.c
Modified: trunk/reactos/hal/halx86/generic/usage.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/usage.c?... ============================================================================== --- trunk/reactos/hal/halx86/generic/usage.c [iso-8859-1] (original) +++ trunk/reactos/hal/halx86/generic/usage.c [iso-8859-1] Wed Aug 24 01:52:12 2011 @@ -132,7 +132,7 @@ 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 @@ }
/* 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)