From dcfd4beb213c551f6ef6ba379651bf303bd9017a Mon Sep 17 00:00:00 2001 From: "Michael T. Whiteley" Date: Wed, 7 Dec 2011 02:33:51 -0800 Subject: childs -> children --- moz/seamonkey-source-1.1.14.patch | 146 +++++++++++++++++++------------------- 1 file changed, 73 insertions(+), 73 deletions(-) (limited to 'moz/seamonkey-source-1.1.14.patch') diff --git a/moz/seamonkey-source-1.1.14.patch b/moz/seamonkey-source-1.1.14.patch index eb602e6b23f3..6931c897147e 100644 --- a/moz/seamonkey-source-1.1.14.patch +++ b/moz/seamonkey-source-1.1.14.patch @@ -4601,35 +4601,35 @@ + */ + //update OUTLOOK_EMAIL_LIST1 + ULONG listTag=GetEmailPropertyTag(*(LPMAPIPROP*)&container,OUTLOOK_EMAIL_LIST1) | PT_MV_BINARY; -+ SBinaryArray oldChilds; ++ SBinaryArray oldChildren; + LPSBinary bins=NULL; -+ SBinaryArray newChilds; ++ SBinaryArray newChildren; + LPSPropValue oldChildValue = NULL ; + ULONG valueCount = 0 ; + + if (!GetMAPIProperties(aDistlist, &listTag, 1, oldChildValue, valueCount)) + { -+ PRINTF(("Cannot get old childs %08x.\n", mLastError)) ; ++ PRINTF(("Cannot get old children %08x.\n", mLastError)) ; + return FALSE; + } + + if (! (oldChildValue->Value.l == MAPI_E_NOT_FOUND)) + { -+ oldChilds = oldChildValue->Value.MVbin; -+ newChilds.cValues=oldChilds.cValues + 1; -+ mMAPIAllocateBuffer(sizeof(SBinary) * newChilds.cValues,(void**)& bins); -+ newChilds.lpbin = bins; -+ for (ULONG i=0;iValue.MVbin; ++ newChildren.cValues=oldChildren.cValues + 1; ++ mMAPIAllocateBuffer(sizeof(SBinary) * newChildren.cValues,(void**)& bins); ++ newChildren.lpbin = bins; ++ for (ULONG i=0;iSetProps(1, &childs, &problems) ; ++ mLastError = container->SetProps(1, &children, &problems) ; + if (HR_FAILED(mLastError)) { -+ PRINTF(("Cannot set childs %08x.\n", mLastError)) ; ++ PRINTF(("Cannot set children %08x.\n", mLastError)) ; + return FALSE ; + } + @@ -4657,27 +4657,27 @@ + listTag = GetEmailPropertyTag(*(LPMAPIPROP*)&container,OUTLOOK_EMAIL_LIST2) | PT_MV_BINARY; + if (!GetMAPIProperties(aDistlist, &listTag, 1, oldChildValue, valueCount)) + { -+ PRINTF(("Cannot get old childs %08x.\n", mLastError)) ; ++ PRINTF(("Cannot get old children %08x.\n", mLastError)) ; + return FALSE; + } + + if (! (oldChildValue->Value.l == MAPI_E_NOT_FOUND)) + { -+ oldChilds = oldChildValue->Value.MVbin; -+ newChilds.cValues=oldChilds.cValues + 1; -+ mMAPIAllocateBuffer(sizeof(SBinary) * newChilds.cValues,(void**)& bins); -+ newChilds.lpbin = bins; -+ for (ULONG i=0;iValue.MVbin; ++ newChildren.cValues=oldChildren.cValues + 1; ++ mMAPIAllocateBuffer(sizeof(SBinary) * newChildren.cValues,(void**)& bins); ++ newChildren.lpbin = bins; ++ for (ULONG i=0;iSetProps(1, &childs, &problems) ; ++ mLastError = container->SetProps(1, &children, &problems) ; + if (HR_FAILED(mLastError)) + { -+ PRINTF(("Cannot set childs %08x.\n", mLastError)) ; ++ PRINTF(("Cannot set children %08x.\n", mLastError)) ; + return FALSE ; + } + @@ -4737,42 +4737,42 @@ + //update OUTLOOK_EMAIL_LIST1 + ULONG listTag=GetEmailPropertyTag(*(LPMAPIPROP*)&container,OUTLOOK_EMAIL_LIST1) | PT_MV_BINARY; + -+ SBinaryArray oldChilds; ++ SBinaryArray oldChildren; + LPSBinary bins=NULL; -+ SBinaryArray newChilds; ++ SBinaryArray newChildren; + LPSPropValue oldChildValue = NULL ; + ULONG valueCount = 0 ; + -+ newChilds.lpbin=NULL; ++ newChildren.lpbin=NULL; + + ULONG lDeleteEntry=0; + ULONG newIndex=0; + ULONG oldIndex=0; + if (!GetMAPIProperties(aDistlist, &listTag, 1, oldChildValue, valueCount)) + { -+ PRINTF(("Cannot get old childs %08x.\n", mLastError)) ; ++ PRINTF(("Cannot get old children %08x.\n", mLastError)) ; + return FALSE; + } + + if (! (oldChildValue->Value.l == MAPI_E_NOT_FOUND)) + { -+ oldChilds = oldChildValue->Value.MVbin; -+ newChilds.cValues=oldChilds.cValues - 1; -+ mMAPIAllocateBuffer(sizeof(SBinary) * newChilds.cValues,(void**)& bins); -+ newChilds.lpbin = bins; -+ for (oldIndex=0;oldIndexValue.MVbin; ++ newChildren.cValues=oldChildren.cValues - 1; ++ mMAPIAllocateBuffer(sizeof(SBinary) * newChildren.cValues,(void**)& bins); ++ newChildren.lpbin = bins; ++ for (oldIndex=0;oldIndexab), -+ oldChilds.lpbin[oldIndex].cb-4)) ++ oldChildren.lpbin[oldIndex].cb-4)) + { + lDeleteEntry=oldIndex; + } + else + { -+ newChilds.lpbin[newIndex].lpb = oldChilds.lpbin[oldIndex].lpb; -+ newChilds.lpbin[newIndex].cb = oldChilds.lpbin[oldIndex].cb; ++ newChildren.lpbin[newIndex].lpb = oldChildren.lpbin[oldIndex].lpb; ++ newChildren.lpbin[newIndex].cb = oldChildren.lpbin[oldIndex].cb; + newIndex++; + } + } @@ -4781,10 +4781,10 @@ + return FALSE; + + -+ SPropValue childs; ++ SPropValue children; + LPSPropProblemArray problems = NULL ; + -+ if (newChilds.cValues == 0) ++ if (newChildren.cValues == 0) + { + SPropTagArray delTags; + delTags.cValues = 1; @@ -4794,13 +4794,13 @@ + } + else + { -+ childs.ulPropTag = listTag; -+ childs.Value.MVbin = newChilds; -+ mLastError = container->SetProps(1, &childs, &problems) ; ++ children.ulPropTag = listTag; ++ children.Value.MVbin = newChildren; ++ mLastError = container->SetProps(1, &children, &problems) ; + } + + if (HR_FAILED(mLastError)) { -+ PRINTF(("Cannot set childs %08x.\n", mLastError)) ; ++ PRINTF(("Cannot set children %08x.\n", mLastError)) ; + return FALSE ; + } + @@ -4808,37 +4808,37 @@ + listTag = GetEmailPropertyTag(*(LPMAPIPROP*)&container,OUTLOOK_EMAIL_LIST2) | PT_MV_BINARY; + if (!GetMAPIProperties(aDistlist, &listTag, 1, oldChildValue, valueCount)) + { -+ PRINTF(("Cannot get old childs %08x.\n", mLastError)) ; ++ PRINTF(("Cannot get old children %08x.\n", mLastError)) ; + return FALSE; + } + + newIndex=0; + if (! (oldChildValue->Value.l == MAPI_E_NOT_FOUND)) + { -+ oldChilds = oldChildValue->Value.MVbin; -+ newChilds.cValues=oldChilds.cValues - 1; -+ mMAPIAllocateBuffer(sizeof(SBinary) * newChilds.cValues,(void**)& bins); -+ newChilds.lpbin = bins; -+ for (oldIndex=0;oldIndexValue.MVbin; ++ newChildren.cValues=oldChildren.cValues - 1; ++ mMAPIAllocateBuffer(sizeof(SBinary) * newChildren.cValues,(void**)& bins); ++ newChildren.lpbin = bins; ++ for (oldIndex=0;oldIndexSetProps(1, &childs, &problems) ; ++ children.ulPropTag = listTag; ++ children.Value.MVbin = newChildren; ++ mLastError = container->SetProps(1, &children, &problems) ; + } + if (HR_FAILED(mLastError)) { -+ PRINTF(("Cannot set childs %08x.\n", mLastError)) ; ++ PRINTF(("Cannot set children %08x.\n", mLastError)) ; + return FALSE ; + } + -- cgit