http://bugs.winehq.org/show_bug.cgi?id=27177
--- Comment #2 from Alexandex Yastrebov menone7@gmail.com 2011-08-03 20:21:49 CDT --- The problem is that some functions pass DWORD(unsigned int) as buffer size, accepted from the application, but should correctly handle values like 0xdeadbeaf. Example CryptEnumProvidersA. WideCharToMultiByte however not obliged to correctly handle a negative buffer size.