http://bugs.winehq.org/show_bug.cgi?id=27367
--- Comment #2 from Alex cerebro.alexiel@gmail.com 2011-06-04 07:43:56 CDT --- You're right but in this case, wine SetFileTypes would not match the Windows prototype anymore.
See http://msdn.microsoft.com/en-us/library/bb775980%28v=vs.85%29.aspx
Your proposed solution doesn't fix the problem but just this particular case.
I know casts are evil (because they often hide a real issue) but what about this one ?
We could also simply ignore this warning as it has no real impact and (among the 45 warnings I have), some are more important (e.g. call_server_func not implemented for your architecture)