http://bugs.winehq.org/show_bug.cgi?id=27177
Summary: advapi32: CRYPT_UnicodeToANSI use signed int for string size Product: Wine Version: unspecified Platform: x86 OS/Version: All Status: UNCONFIRMED Severity: normal Priority: P2 Component: advapi32 AssignedTo: wine-bugs@winehq.org ReportedBy: menone7@gmail.com
CRYPT_UnicodeToANSI use signed int for string size. It problem, if size is negative. WideCharToMultiByte does not always work out well if count < 0. example /dlls/advapi32/tests/crypt.c:560