windowscodecs: Account for a NULL pceltFetched in ComponentEnum_Next.
diff --git a/dlls/windowscodecs/info.c b/dlls/windowscodecs/info.c
index 2e558a8..f790dbc 100644
--- a/dlls/windowscodecs/info.c
+++ b/dlls/windowscodecs/info.c
@@ -817,7 +817,8 @@
         This->cursor = list_next(&This->objects, This->cursor);
     }
     LeaveCriticalSection(&This->lock);
-    *pceltFetched = num_fetched;
+    if (pceltFetched)
+        *pceltFetched = num_fetched;
     return hr;
 }