crypt32: Always set required encoded length in CryptEncodeObject(Ex).

This commit is contained in:
Juan Lang 2006-07-17 19:44:54 -07:00 committed by Alexandre Julliard
parent 9e7f182871
commit 11d018471b
1 changed files with 2 additions and 0 deletions

View File

@ -163,6 +163,8 @@ static BOOL CRYPT_EncodeEnsureSpace(DWORD dwFlags,
SetLastError(ERROR_MORE_DATA); SetLastError(ERROR_MORE_DATA);
ret = FALSE; ret = FALSE;
} }
else
*pcbEncoded = bytesNeeded;
return ret; return ret;
} }