use sizeof(OBJECT_ATTRIBUTES) instead of sizeof(POBJECT_ATTRIBUTES) when probing ObjectAttributes for read

svn path=/trunk/; revision=30602
This commit is contained in:
Christoph von Wittich 2007-11-20 19:35:40 +00:00
parent f61535edf3
commit 5c489c528b

View file

@ -237,7 +237,7 @@ SepCaptureSecurityQualityOfService(IN POBJECT_ATTRIBUTES ObjectAttributes OPTIO
_SEH_TRY
{
ProbeForRead(ObjectAttributes,
sizeof(ObjectAttributes),
sizeof(OBJECT_ATTRIBUTES),
sizeof(ULONG));
if(ObjectAttributes->Length == sizeof(OBJECT_ATTRIBUTES))
{