diff --git a/Docs/src/headers.but b/Docs/src/headers.but index 17be75e8..8ec6af02 100644 --- a/Docs/src/headers.but +++ b/Docs/src/headers.but @@ -704,8 +704,8 @@ Call functions: \c $var ; Result: option string \\Note:\\ -\\- Error flag if option not found -\\- First option symbol it is delimiter +\\- The error flag is set if the option is not found +\\- The first character in the option string is treated as a parameter delimiter \\Example1:\\ diff --git a/Source/strlist.cpp b/Source/strlist.cpp index 48456ba5..f9af75d0 100644 --- a/Source/strlist.cpp +++ b/Source/strlist.cpp @@ -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;