https://bugs.winehq.org/show_bug.cgi?id=42658
--- Comment #4 from Gijs Vermeulen acescopezz@gmail.com --- (In reply to Austin English from comment #3)
(In reply to Gijs Vermeulen from comment #2)
Created attachment 57595 [details] stub test v2
The other patch was obviously wrong, I changed it a bit. (Could still be wrong)
Causes some compiler warnings: ../msvcrt/lock.c: In function 'Alloc': ../msvcrt/lock.c:616:5: warning: 'return' with a value, in function returning void return p; ^
but yes, it appears to work (at least, it gets to the same point as native now, bug 42649)
According to MSDN the function is void, but returns a pointer. I don't know how I could fix the warning. https://msdn.microsoft.com/en-us/library/dd492420(vs.100).aspx