http://bugs.winehq.org/show_bug.cgi?id=7451
--- Comment #8 from Mildred silkensedai@online.fr 2008-05-22 20:13:52 --- Well, looking at the MSDN documentation it seems that the wine version of this function is buggy because the function should return 0 on failure and 1 on success. And obviously, the function succeeds (when you look at the error messages).
http://msdn.microsoft.com/en-us/library/ms532278(VS.85).aspx