[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,9 +48,10 @@ InfpGetSubstitutionString(PINFCACHE Inf,
if (Inf->LanguageId != 0)
{
swprintf(StringLangId,
L"Strings.%04hx",
Inf->LanguageId);
_snwprintf(StringLangId,
13,
L"Strings.%04hx",
Inf->LanguageId);
Status = InfpFindFirstLine(Inf,
StringLangId,
@ -58,9 +59,10 @@ InfpGetSubstitutionString(PINFCACHE Inf,
&Context);
if (Status != INF_STATUS_SUCCESS)
{
swprintf(StringLangId,
L"Strings.%04hx",
MAKELANGID(PRIMARYLANGID(Inf->LanguageId), SUBLANG_NEUTRAL));
_snwprintf(StringLangId,
13,
L"Strings.%04hx",
MAKELANGID(PRIMARYLANGID(Inf->LanguageId), SUBLANG_NEUTRAL));
Status = InfpFindFirstLine(Inf,
StringLangId,