From ff1e7b0dcc028a630f1b4fa014561d2abe28cb06 Mon Sep 17 00:00:00 2001 From: "cavin%netscape.com" Date: Wed, 26 Mar 2003 00:25:14 +0000 Subject: [PATCH] Fix for 192994. Put back memeset() call to fix MS COM not returning the right status code for nsSynchronizeAB(). r/sr=sspitzer. --- mailnews/extensions/palmsync/src/nsAbIPCCard.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mailnews/extensions/palmsync/src/nsAbIPCCard.cpp b/mailnews/extensions/palmsync/src/nsAbIPCCard.cpp index 93d0709436ed..10beefd986a7 100644 --- a/mailnews/extensions/palmsync/src/nsAbIPCCard.cpp +++ b/mailnews/extensions/palmsync/src/nsAbIPCCard.cpp @@ -805,6 +805,9 @@ nsresult nsAbIPCCard::GetABCOMCardStruct(PRBool isUnicode, nsABCOMCardStruct * c { NS_ENSURE_ARG_POINTER(card); + // If memset() call is missing, callers of MS COM nsSynchronizeAB() will + // receive a different return code even if nsSynchronizeAB() return S_OK. + memset(card, 0, sizeof(nsABCOMCardStruct)); card->dwRecordId = mRecordId; card->dwCategoryId = mCategoryId; card->dwStatus = mStatus;