mirror of
https://github.com/reactos/reactos.git
synced 2024-07-02 02:34:53 +00:00
[NEWINFLIB]
- use _snwprintf instead of swprintf (MSVC is not compliant with standard here) svn path=/trunk/; revision=54793
This commit is contained in:
parent
10ce3354a3
commit
000fca5bd8
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue