https://bugs.winehq.org/show_bug.cgi?id=50624
--- Comment #1 from Louis Lenders xerox.xerox2000x@gmail.com --- Created attachment 69572 --> https://bugs.winehq.org/attachment.cgi?id=69572 little test
This bug is fixed now in Staging. Thanks Alistair.
For completeness I attach little test based on cygwin`s sec_helper.cc for this bugreport