msvcrt: printf padzero/leftalign fix

Jesse Allen the3dfxdude at
Mon Dec 19 16:19:01 CST 2005


There is a problem where PadZero is not ignored when LeftAlign is
true.  This caused printing of extra zeroes before and after the
converted type.  This updates the logic in pf_fill to ignore PadZero
when LeftAlign is true so it returns correctly formatted without
zeroes to field width.  Confirmed with tests on win2k3 and from msdn.

Ignore PadZero when LeftAlign is true in printf conversions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pf_padzero_leftalign_fix.diff
Type: application/octet-stream
Size: 1294 bytes
Desc: not available
Url :

More information about the wine-patches mailing list