summaryrefslogtreecommitdiff
path: root/wince/stdlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'wince/stdlib.c')
-rw-r--r--wince/stdlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wince/stdlib.c b/wince/stdlib.c
index c7f0c84..a2ac340 100644
--- a/wince/stdlib.c
+++ b/wince/stdlib.c
@@ -30,9 +30,9 @@ int mblen(const char *mbstr, size_t count)
{
if( *p=='\0' ) break;
if( IsDBCSLeadByteEx( CP_ACP, *p ) )
- n+=2;
+ n+=2, p+=2;
else
- n+=1;
+ n+=1, p+=1;
}
return n;