зеркало из https://github.com/mozilla/gecko-dev.git
Fix for 192994. Put back memeset() call to fix MS COM not returning the right status code for nsSynchronizeAB(). r/sr=sspitzer.
This commit is contained in:
Родитель
3533d583c5
Коммит
ff1e7b0dcc
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче