Commit 2ea15a56 authored by Bill Medland's avatar Bill Medland Committed by Alexandre Julliard

Don't mess up the msvcrt codepage on e.g. _MB_CP_ANSI.

parent f81b6517
......@@ -515,8 +515,13 @@ const char* _Strftime(char *out, unsigned int len, const char *fmt,
/*********************************************************************
* _setmbcp (MSVCRT.@)
*/
void _setmbcp(int cp)
int _setmbcp(int cp)
{
if (cp < 0)
{
FIXME ("Unreal codepages (e.g. %d) not implemented\n", cp);
return 0; /* Let's not confuse the caller by returning -1 */
}
LOCK_LOCALE;
if (msvcrt_current_lc_all_cp != cp)
{
......@@ -524,6 +529,7 @@ void _setmbcp(int cp)
msvcrt_current_lc_all_cp = cp;
}
UNLOCK_LOCALE;
return 0;
}
/*********************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment