[PATCH] [1/2] kernel32: Set NO_ERROR code in CompareStringA.

Tatyana Fokina tatyana at etersoft.ru
Tue Jan 8 06:32:23 CST 2013


CompareStringA converts strings and sends to CompareStringW. If the 
string is greater than 130 characters(static buffer size = 261), 
MultiByteToWideChar sets ERROR_INSUFFICIENT_BUFFER. CompareStringA 
receives an error and allocates most memory from the heap and makes a 
second attempt to call MultiByteToWideChar. Calling up correctly, but 
the error code is ERROR_INSUFFICIENT_BUFFER.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-kernel32-Set-NO_ERROR-code-in-CompareStringA.patch
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130108/2bcd11af/attachment.ksh>


More information about the wine-patches mailing list