https://bugs.winehq.org/show_bug.cgi?id=45243
--- Comment #3 from Marcos Gutiérrez Batz sacrom@gmail.com --- It's important to note that the cast error is generated because it is a 64bit compilation.
Using as a reference the Windows windowx.h file I've changed UINT casts with UINT_PTR so that it must now work in 32 and 64 bit applications. I'm going to add a "diff -up" patch