[NEWINFLIB]

- use _snwprintf instead of swprintf (MSVC is not compliant with standard here)

svn path=/trunk/; revision=54793
This commit is contained in:
Jérôme Gardou 2011-12-31 14:33:35 +00:00
parent 10ce3354a3
commit 000fca5bd8

View file

@ -48,7 +48,8 @@ InfpGetSubstitutionString(PINFCACHE Inf,
if (Inf->LanguageId != 0) if (Inf->LanguageId != 0)
{ {
swprintf(StringLangId, _snwprintf(StringLangId,
13,
L"Strings.%04hx", L"Strings.%04hx",
Inf->LanguageId); Inf->LanguageId);
@ -58,7 +59,8 @@ InfpGetSubstitutionString(PINFCACHE Inf,
&Context); &Context);
if (Status != INF_STATUS_SUCCESS) if (Status != INF_STATUS_SUCCESS)
{ {
swprintf(StringLangId, _snwprintf(StringLangId,
13,
L"Strings.%04hx", L"Strings.%04hx",
MAKELANGID(PRIMARYLANGID(Inf->LanguageId), SUBLANG_NEUTRAL)); MAKELANGID(PRIMARYLANGID(Inf->LanguageId), SUBLANG_NEUTRAL));