http://bugs.winehq.org/show_bug.cgi?id=59449 --- Comment #3 from Nikolay Sivov <bunglehead@gmail.com> --- (In reply to bugfix44 from comment #2)
What about my proposal?
In fact, CRYPT_E_NO_MATCH is not the only error message that's missing. All CRYPT_E_* messages seem to be missing (only tested a few just now). If I understand this correctly there is no complete error list maintained by windows so wine is predetermined to fail at uncommon error codes. In that case setting lpBuffer to a pointer to an empty string (while indicating that FormatMessageW failed) would be appropriate to avoid applications crashing that assume valid error codes give valid error messages. Any thoughts on my proposal?
It's not what it's doing on Windows, right? If you call with a code that has no assigned message, it will fail same as Wine. We can still add missing messages when there is a need for that. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.