http://bugs.winehq.org/show_bug.cgi?id=24332
Rudi Mayerhofer rm@eightyfive.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rm@eightyfive.net
--- Comment #5 from Rudi Mayerhofer rm@eightyfive.net 2010-09-10 07:39:24 CDT --- (In reply to comment #4)
(In reply to comment #3)
Created an attachment (id=30676)
--> (http://bugs.winehq.org/attachment.cgi?id=30676) [details] [details]
Simple GetUserDefaultLocaleName Impl
Created a quick and simple implementation for GetUserDefaultLocaleName using GetUserDefaultLCID() and LCIDToLocaleName().
Tested and working with Cataclysm Beta 12942.
Looks good. MSDN also specifies:
ERROR_INSUFFICIENT_BUFFER. A supplied buffer size was not large enough, or it was incorrectly set to NULL.
You might want to check for this? Of course MSDN is shoddy at best and it might require a test..
The ERROR_INSUFFICIENT_BUFFER should be handled by LCIDToLocaleName() already, MSDN specifies that case for LCIDToLocaleName() as well.