Author: tkreuzer Date: Wed Aug 24 09:41:16 2011 New Revision: 53409
URL: http://svn.reactos.org/svn/reactos?rev=53409&view=rev Log: [HAL/VIDEOPRT/EVENTLOG] Really fix some of the sizeof issues
Modified: trunk/reactos/base/services/eventlog/rpc.c trunk/reactos/drivers/video/videoprt/services.c trunk/reactos/hal/halx86/generic/usage.c
Modified: trunk/reactos/base/services/eventlog/rpc.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/eventlog/rpc.... ============================================================================== --- trunk/reactos/base/services/eventlog/rpc.c [iso-8859-1] (original) +++ trunk/reactos/base/services/eventlog/rpc.c [iso-8859-1] Wed Aug 24 09:41:16 2011 @@ -462,7 +462,7 @@ EventID, lpLogHandle->szName, ComputerName->Buffer, - sizeof(PRPC_SID), + sizeof(RPC_SID), &UserSID, NumStrings, (WCHAR*)lpStrings,
Modified: trunk/reactos/drivers/video/videoprt/services.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/video/videoprt/serv... ============================================================================== --- trunk/reactos/drivers/video/videoprt/services.c [iso-8859-1] (original) +++ trunk/reactos/drivers/video/videoprt/services.c [iso-8859-1] Wed Aug 24 09:41:16 2011 @@ -111,6 +111,6 @@ return FALSE; }
- RtlCopyMemory(AgpServices, &Interface.AgpReservePhysical, sizeof(PVIDEO_PORT_AGP_SERVICES)); + RtlCopyMemory(AgpServices, &Interface.AgpReservePhysical, sizeof(VIDEO_PORT_AGP_SERVICES)); return TRUE; }
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 09:41:16 2011 @@ -132,7 +132,7 @@ RawDescriptor->u.Interrupt.Affinity = HalpActiveProcessors;
/* The translated copy is identical */ - RtlCopyMemory(TranslatedDescriptor, RawDescriptor, sizeof(PCM_PARTIAL_RESOURCE_DESCRIPTOR)); + RtlCopyMemory(TranslatedDescriptor, RawDescriptor, sizeof(CM_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(PCM_PARTIAL_RESOURCE_DESCRIPTOR)); + RtlCopyMemory(TranslatedDescriptor, RawDescriptor, sizeof(CM_PARTIAL_RESOURCE_DESCRIPTOR));
/* Check what this is */ if (RawDescriptor->Type == CmResourceTypePort)