Fixed SOAP document-style returns. Not part of default build.

This commit is contained in:
rayw%netscape.com 2001-11-29 03:31:42 +00:00
Родитель c003a9e3b0
Коммит 445139c03f
2 изменённых файлов: 14 добавлений и 2 удалений

Просмотреть файл

@ -385,11 +385,17 @@ NS_IMETHODIMP nsSOAPMessage::GetParameters(PRBool aDocumentStyle, PRUint32 *aCou
int count = 0;
int length = 0;
nsCOMPtr<nsIDOMElement> element;
nsresult rv = GetHeader(getter_AddRefs(element));
nsresult rv = GetBody(getter_AddRefs(element));
if (NS_FAILED(rv)) return rv;
if (!element) return NS_ERROR_ILLEGAL_VALUE;
nsCOMPtr<nsIDOMElement> next;
nsCOMPtr<nsISOAPParameter> param;
nsSOAPUtils::GetFirstChildElement(element, getter_AddRefs(next));
if (aDocumentStyle) {
element = next;
if (!element) return NS_ERROR_ILLEGAL_VALUE;
nsSOAPUtils::GetFirstChildElement(element, getter_AddRefs(next));
}
while (next) {
if (length == count) {
length = length ? 2 * length : 10;

Просмотреть файл

@ -385,11 +385,17 @@ NS_IMETHODIMP nsSOAPMessage::GetParameters(PRBool aDocumentStyle, PRUint32 *aCou
int count = 0;
int length = 0;
nsCOMPtr<nsIDOMElement> element;
nsresult rv = GetHeader(getter_AddRefs(element));
nsresult rv = GetBody(getter_AddRefs(element));
if (NS_FAILED(rv)) return rv;
if (!element) return NS_ERROR_ILLEGAL_VALUE;
nsCOMPtr<nsIDOMElement> next;
nsCOMPtr<nsISOAPParameter> param;
nsSOAPUtils::GetFirstChildElement(element, getter_AddRefs(next));
if (aDocumentStyle) {
element = next;
if (!element) return NS_ERROR_ILLEGAL_VALUE;
nsSOAPUtils::GetFirstChildElement(element, getter_AddRefs(next));
}
while (next) {
if (length == count) {
length = length ? 2 * length : 10;