Author: janderwald
Date: Mon Sep 28 12:38:23 2009
New Revision: 43201
URL:
http://svn.reactos.org/svn/reactos?rev=43201&view=rev
Log:
- Fix 2 bugs:
- The Category member is LPGUID not GUID
- Check if there is a category member
Modified:
trunk/reactos/drivers/ksfilter/ks/connectivity.c
Modified: trunk/reactos/drivers/ksfilter/ks/connectivity.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/ksfilter/ks/connec…
==============================================================================
--- trunk/reactos/drivers/ksfilter/ks/connectivity.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/ksfilter/ks/connectivity.c [iso-8859-1] Mon Sep 28 12:38:23
2009
@@ -378,8 +378,11 @@
Irp->IoStatus.Status = STATUS_BUFFER_TOO_SMALL;
break;
}
-
- RtlMoveMemory(Buffer, &Descriptor[Pin->PinId].Category,
sizeof(GUID));
+ if (Descriptor[Pin->PinId].Category)
+ {
+ RtlMoveMemory(Buffer, Descriptor[Pin->PinId].Category, sizeof(GUID));
+ }
+
Irp->IoStatus.Status = STATUS_SUCCESS;
Irp->IoStatus.Information = Size;
break;