"Alexandre" == Alexandre Julliard <julliard(a)winehq.org> writes:
Alexandre> Rob Shearman <rob(a)codeweavers.com> writes: >> At present, if the size of the buffer passed to snprintfW is too >> small then the function returns -1, as opposed to the required size >> of the buffer (as per C snprintf). This greatly limits its usefulness >> and can give incorrect results for those using the function that >> don't explicitly check for -1 being returned. A grep of the source >> tree shows that nothing depends on this behaviour. Alexandre> Actually, something does depend on it: it is used to Alexandre> implement _vsnwprintf in ntdll, so you can't change it. Doesn't it sound like it's wrong for ntdll _vsnwprintf() to rely on a restricted implementation for snprintfW()? -- Uwe Bonnes bon(a)elektron.ikp.physik.tu-darmstadt.de Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------