_countof and swprintf fixes for VC6
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6045 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
34395604e8
commit
82d42b1159
13 changed files with 68 additions and 74 deletions
|
@ -210,7 +210,7 @@ void CResourceVersionInfo::ExportToStream(GrowBuf &strm, int Index)
|
|||
int codepage = m_ChildStringLists.get_codepage(Index);
|
||||
LANGID langid = m_ChildStringLists.get_lang(Index);
|
||||
WCHAR Buff[16];
|
||||
swprintf(Buff, _countof(Buff), L"%04x%04x", langid, codepage);
|
||||
_snwprintf(Buff, COUNTOF(Buff), L"%04x%04x", langid, codepage);
|
||||
SaveVersionHeader (stringInfoStream, 0, 0, 0, Buff, &ZEROS);
|
||||
|
||||
for ( int i = 0; i < pChildStrings->getnum(); i++ )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue