mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 16:25:43 +00:00
[HAL]
* Fix a couple bad sizeof(). svn path=/trunk/; revision=53402
This commit is contained in:
parent
83a29c33af
commit
9a44ac663c
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue