msvcrt: Remove unnecessary NULL check (Coverity).
This commit is contained in:
parent
f62218fc66
commit
4da51e087d
|
@ -810,12 +810,9 @@ int CDECL MSVCRT_vsnprintf( char *str, unsigned int len,
|
||||||
out.used = 0;
|
out.used = 0;
|
||||||
out.len = len;
|
out.len = len;
|
||||||
|
|
||||||
if( format )
|
sz = MultiByteToWideChar( CP_ACP, 0, format, -1, NULL, 0 );
|
||||||
{
|
formatW = HeapAlloc( GetProcessHeap(), 0, sz*sizeof(WCHAR) );
|
||||||
sz = MultiByteToWideChar( CP_ACP, 0, format, -1, NULL, 0 );
|
MultiByteToWideChar( CP_ACP, 0, format, -1, formatW, sz );
|
||||||
formatW = HeapAlloc( GetProcessHeap(), 0, sz*sizeof(WCHAR) );
|
|
||||||
MultiByteToWideChar( CP_ACP, 0, format, -1, formatW, sz );
|
|
||||||
}
|
|
||||||
|
|
||||||
r = pf_vsnprintf( &out, formatW, valist );
|
r = pf_vsnprintf( &out, formatW, valist );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue