kernel32: add more tests for FormatMessage{A,W}

Louis Lenders xerox_xerox2000 at yahoo.co.uk
Mon Oct 26 19:28:39 CDT 2009


These tests show the problem in http://bugs.winehq.org/show_bug.cgi?id=19352

In http://msdn.microsoft.com/en-us/library/ms679351(VS.85).aspx
MSDN states that "If the function cannot find a message for that LANGID, it sets the error to ERROR_RESOURCE_LANG_NOT_FOUND.

The attached tests show that this is true for "non-special" language-id's, but not for the special ones:
(LANG_NEUTRAL, SUBLANG_NEUTRAL), (LANG_NEUTRAL, SUBLANG_DEFAULT),(LANG_NEUTRAL, SUBLANG_SYS_DEFAULT), and (DWORD)MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US)

In the latter case the error is set to ERROR_MR_MID_NOT_FOUND

fix will follow


      
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-kernel32-tests-add-more-tests-for-Formatmessage-A-W.txt
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20091027/becd2b9b/attachment.txt>


More information about the wine-patches mailing list