[KS]
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Sun, 23 Dec 2012 16:47:06 +0000 (16:47 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Sun, 23 Dec 2012 16:47:06 +0000 (16:47 +0000)
- resource size parameter is optional according to documentation
CORE-6555

svn path=/trunk/; revision=57979

reactos/drivers/ksfilter/ks/image.c

index dbdeca0..decabbe 100644 (file)
@@ -52,7 +52,12 @@ KsLoadResource(
                     RtlMoveMemory(Result, Data, Size);
                     /* store result */
                     *Resource = Result;
-                    *ResourceSize = Size;
+
+                    if (ResourceSize)
+                    {
+                        /* resource size is optional */
+                        *ResourceSize = Size;
+                    }
                 }
                 else
                 {