https://bugs.winehq.org/show_bug.cgi?id=43871
--- Comment #1 from Lorenzo Ferrillo lorenzofer@live.it --- Created attachment 59473 --> https://bugs.winehq.org/attachment.cgi?id=59473 minimal repro 2
Another small piece of code that cause this ill beheviour.
Note that in this case the SEGFAULT happen only when compiling with -mno-cygwin flag. If not compiling using -mno-cygwin flag the program works.