Hi,
I wonder if the attached patche would make in into git?
It fixes the case when CryptEncrypt is called with pbData=NULL to determine the needed buffer size after encryption.
It fixes the http://bugs.winehq.org/attachment.cgi?id=3023&action=view testcase in http://bugs.winehq.org/show_bug.cgi?id=5639
Karsten