Clarify ${GetParameters} documentation

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6636 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2015-11-17 08:54:02 +00:00
parent 6eaea6479f
commit 7d64d54ae7
2 changed files with 3 additions and 3 deletions

View file

@ -704,8 +704,8 @@ Call functions:
\c $var ; Result: option string
\\<b\\>Note:\\</b\\>
\\<br\\>- Error flag if option not found
\\<br\\>- First option symbol it is delimiter
\\<br\\>- The error flag is set if the option is not found
\\<br\\>- The first character in the option string is treated as a parameter delimiter
\\<b\\>Example1:\\</b\\>

View file

@ -101,7 +101,7 @@ unsigned int ExeHeadStringList::find(const TCHAR *str, WORD codepage, bool proce
unsigned int ExeHeadStringList::find(const void *ptr, unsigned int cchF, WORD codepage, bool processed, char**ppBufMB) const
{
const wchar_t *find = (const wchar_t*) ptr; // Data is: m_wide ? UTF16LE : wchar_t
if (!*find) return 0; // The empty string is always first.
if (!*find) return 0; // The empty string is always first (ExeHead uses string block offset 0 to indicate no parameter present in some places).
char *p = (char*) m_gr.get();
if (!p) return -1;