ntdll: Don't do further calls to pf_output_stringA if previous call failed.

This commit is contained in:
Sebastian Lackner 2013-12-20 05:59:41 +01:00 committed by Alexandre Julliard
parent 29de7dd60b
commit 805311f798
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ static inline int pf_fill( pf_output *out, int len, pf_flags *flags, char left )
}
}
if( left && flags->Sign && !flags->PadZero )
if (left && flags->Sign && !flags->PadZero && r >= 0)
r = pf_output_stringA( out, &flags->Sign, 1 );
return r;