https://bugs.winehq.org/show_bug.cgi?id=38493
--- Comment #6 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- I restarted from scratch and found that my previous analysis was based on a corrupted debugging output. I used > instead of >> to redirect output and it is a multi-threaded app so output was overwritten.
With correct output I see that there are two calls to GetProcAddress. The GetProcAddress retval for SetFileCompletionNotificationModes is 0 and the return line matches the one from the Call. The other looks for CancelIoEx and has a non-null return value.
Without the patch the thread quickly dies after those calls (after a bunch of heap alloc/free). With the patch the thread doesn't die, but two other threads crash one after the other some time later.
Note that I now test with Wine 1.7.42.