Fixed some typos (Most of them found by codespell/Stefan Weil)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6704 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
a074c23582
commit
510fb334c8
9 changed files with 11 additions and 11 deletions
|
@ -1182,7 +1182,7 @@ static int NSISCALL ExecuteEntry(entry *entry_)
|
|||
case EW_READINISTR:
|
||||
{
|
||||
// GetPrivateProfileString can't read CR & LF characters inside values from INI files
|
||||
// so we use "\n" as a detection system to see if we did succesfully read a value
|
||||
// so we use "\n" as a detection system to see if we did successfully read a value
|
||||
const TCHAR errstr[] = _T("\n");
|
||||
TCHAR *p=var0;
|
||||
TCHAR *buf0=GetStringFromParm(0x01);
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
// pages (struct page)
|
||||
// section headers (struct section)
|
||||
// entries/instructions (struct entry)
|
||||
// strings (null seperated)
|
||||
// strings (null separated)
|
||||
// language tables (language id, dialog offset, language strings)
|
||||
// colors (struct color)
|
||||
// data block (compressed files and uninstaller data)
|
||||
|
|
|
@ -52,7 +52,7 @@ NSIS_STRING g_usrvarssection[1];
|
|||
TCHAR g_usrvarssection[1] __attribute__((section (NSIS_VARS_SECTION)));
|
||||
const NSIS_STRING*const g_usrvarsstart = (const NSIS_STRING*const) g_usrvarssection;
|
||||
# else
|
||||
# error Unknown compiler. You must implement the seperate PE section yourself.
|
||||
# error Unknown compiler. You must implement the separate PE section yourself.
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -434,7 +434,7 @@ int CEXEBuild::DefineLangString(const TCHAR *name, int process/*=-1*/) {
|
|||
#endif
|
||||
|
||||
// Now set the new index and uindex values with the
|
||||
// passed in proces value.
|
||||
// passed in process value.
|
||||
build_langstrings.set(pos, index, uindex, process);
|
||||
|
||||
// set reference count for NLF strings
|
||||
|
|
|
@ -771,7 +771,7 @@ void RawTStrToASCII(const TCHAR*in,char*out,UINT maxcch)
|
|||
* ExpandoStrFmtVaList returns the number of characters written excluding
|
||||
* the \0 terminator or 0 on error.
|
||||
* realloc() is used on *ppMalloc if cchStack is not
|
||||
* large enough to hold the formated string.
|
||||
* large enough to hold the formatted string.
|
||||
*/
|
||||
size_t ExpandoStrFmtVaList(wchar_t*Stack, size_t cchStack, wchar_t**ppMalloc, const wchar_t*FmtStr, va_list Args)
|
||||
{
|
||||
|
@ -1208,7 +1208,7 @@ static bool GetDLLVersionUsingRE(const tstring& filepath, DWORD& high, DWORD & l
|
|||
// get VS_FIXEDFILEINFO from VS_VERSIONINFO
|
||||
WINWCHAR *szKey = (WINWCHAR *)(ver + sizeof(WORD) * 3);
|
||||
size_t len = (WinWStrLen(szKey) + 1) * sizeof(WINWCHAR) + sizeof(WORD) * 3;
|
||||
len = (len + 3) & ~3; // align on DWORD boundry
|
||||
len = (len + 3) & ~3; // align on DWORD boundary
|
||||
VS_FIXEDFILEINFO *verinfo = (VS_FIXEDFILEINFO *)(ver + len);
|
||||
if (versize > len && verinfo->dwSignature == VS_FFI_SIGNATURE)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue