[ros-diffs] [janderwald] 43201: - Fix 2 bugs: - The Category member is LPGUID not GUID - Check if there is a category member
janderwald at svn.reactos.org
janderwald at svn.reactos.org
Mon Sep 28 12:38:24 CEST 2009
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/connectivity.c?rev=43201&r1=43200&r2=43201&view=diff
==============================================================================
--- 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;
More information about the Ros-diffs
mailing list