- better fix for non standard use of swprintf, by Thomas Faber
svn path=/trunk/; revision=54795
infhostput.c
infhostrtl.c)
- add_definitions(-D__NO_CTYPE_INLINES -DINFLIB_HOST)
+ add_definitions(-D__NO_CTYPE_INLINES -DINFLIB_HOST -D_CRT_NON_CONFORMING_SWPRINTFS)
+ add_library(inflibhost ${GLOBAL_FILES} ${SOURCE})
if(NOT MSVC)
- add_compile_flags("-Wpointer-arith -Wwrite-strings")
+ add_target_compile_flags(inflibhost "-Wpointer-arith -Wwrite-strings")
endif()
- add_library(inflibhost ${GLOBAL_FILES} ${SOURCE})
target_link_libraries(inflibhost unicode)
endif()
if (Inf->LanguageId != 0)
{
- _snwprintf(StringLangId,
- 13,
- L"Strings.%04hx",
- Inf->LanguageId);
+ swprintf(StringLangId,
+ L"Strings.%04hx",
+ Inf->LanguageId);
Status = InfpFindFirstLine(Inf,
StringLangId,
&Context);
if (Status != INF_STATUS_SUCCESS)
{
- _snwprintf(StringLangId,
- 13,
- L"Strings.%04hx",
- MAKELANGID(PRIMARYLANGID(Inf->LanguageId), SUBLANG_NEUTRAL));
+ swprintf(StringLangId,
+ L"Strings.%04hx",
+ MAKELANGID(PRIMARYLANGID(Inf->LanguageId), SUBLANG_NEUTRAL));
Status = InfpFindFirstLine(Inf,
StringLangId,