msvcrt: Fix printf sign flags.
Fix the printf sign flags so that '+' doesn't always override ' '
space alone. If they both appear, continue parsing and let '+' take
precedence.
diff --git a/dlls/msvcrt/wcs.c b/dlls/msvcrt/wcs.c
index efb93d8..83a713e 100644
--- a/dlls/msvcrt/wcs.c
+++ b/dlls/msvcrt/wcs.c
@@ -438,7 +438,10 @@
while (*p)
{
if( *p == '+' || *p == ' ' )
- flags.Sign = '+';
+ {
+ if ( flags.Sign != '+' )
+ flags.Sign = *p;
+ }
else if( *p == '-' )
flags.LeftAlign = *p;
else if( *p == '0' )