applied fix to xmlSAXParseDTD from Malcolm Tredinnick closing #111638

* parser.c: applied fix to xmlSAXParseDTD from Malcolm Tredinnick
  closing #111638
Daniel
diff --git a/parser.c b/parser.c
index 19e4313..80a6187 100644
--- a/parser.c
+++ b/parser.c
@@ -9578,7 +9578,7 @@
      */
 
     if ((ctxt->sax != NULL) && (ctxt->sax->resolveEntity != NULL))
-	input = ctxt->sax->resolveEntity(ctxt->userData, ExternalID, SystemID);
+	input = ctxt->sax->resolveEntity(ctxt, ExternalID, SystemID);
     if (input == NULL) {
         if (sax != NULL) ctxt->sax = NULL;
 	xmlFreeParserCtxt(ctxt);