_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
|
@ -139,14 +139,14 @@ void UpdateToolBarCompressorButton()
|
|||
LoadString(g_sdata.hInstance,
|
||||
IDS_COMPRESSOR,
|
||||
temp,
|
||||
_countof(temp));
|
||||
COUNTOF(temp));
|
||||
my_memset(szBuffer, 0, sizeof(szBuffer));
|
||||
lstrcat(szBuffer,temp);
|
||||
lstrcat(szBuffer,_T(" ["));
|
||||
LoadString(g_sdata.hInstance,
|
||||
iString,
|
||||
temp,
|
||||
_countof(temp));
|
||||
COUNTOF(temp));
|
||||
lstrcat(szBuffer,temp);
|
||||
lstrcat(szBuffer,_T("]"));
|
||||
|
||||
|
@ -181,7 +181,7 @@ void AddToolBarButtonTooltip(int id, int iString)
|
|||
LoadString(g_sdata.hInstance,
|
||||
iString,
|
||||
szBuffer,
|
||||
_countof(szBuffer));
|
||||
COUNTOF(szBuffer));
|
||||
ti.lpszText = (LPTSTR) szBuffer;
|
||||
ti.rect.left =rect.left;
|
||||
ti.rect.top = rect.top;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue