Re: [v2] msvcrt: Introduce vf[w]printf_helper function.
6 Oct
2017
6 Oct
'17
5:41 p.m.
Hi, On 10/02/17 21:46, Gijs Vermeulen wrote:
-int CDECL MSVCRT_vfprintf(MSVCRT_FILE* file, const char *format, __ms_va_list valist) +static int vfprintf_vfwprintf_helper(MSVCRT_FILE* file, const char *format, const MSVCRT_wchar_t *format_wide, + __ms_va_list valist, MSVCRT__locale_t locale, DWORD options, BOOL wide) I would prefer to have a separate helper for vfprintf and vfwprintf functions. Also please reorder the parameters so it's more similar to _stdio_common_vfprintf.
+ if(!MSVCRT_CHECK_PMT( file != NULL )) return -1; + if(!(wide && MSVCRT_CHECK_PMT( format != NULL ))) return -1; This doesn't work as expected. It should look like this: if(!wide && !MSVCRT_CHECK_PMT(...
Thanks, Piotr
2992
Age (days ago)
2992
Last active (days ago)
0 comments
1 participants
participants (1)
-
Piotr Caban