http://bugs.winehq.org/show_bug.cgi?id=22514
--- Comment #14 from Lei Zhang thestig@google.com 2010-04-28 19:31:53 --- (In reply to comment #13)
(In reply to comment #12)
b) the native implementation doesn't call SetLastError while Wine does
Please feel free to send a patch with a test case to wine-patches.
http://www.winehq.org/pipermail/wine-patches/2010-April/087881.html