Commit 805311f7 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

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

parent 29de7dd6
......@@ -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;
......
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