fixed winchar_strcmp
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4893 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
8abd506086
commit
42fe2b8d43
1 changed files with 4 additions and 4 deletions
|
@ -80,15 +80,15 @@ size_t winchar_strlen(WCHAR *ws)
|
|||
|
||||
int winchar_strcmp(const WCHAR *ws1, const WCHAR *ws2)
|
||||
{
|
||||
WCHAR diff = 0;
|
||||
int diff = 0;
|
||||
|
||||
do
|
||||
{
|
||||
diff = *ws1 - *ws2;
|
||||
diff = static_cast<int>(*ws1) - static_cast<int>(*ws2);
|
||||
}
|
||||
while (*ws1++ && *ws2++);
|
||||
while (*ws1++ && *ws2++ && !diff);
|
||||
|
||||
return static_cast<int>(diff);
|
||||
return diff;
|
||||
}
|
||||
|
||||
int winchar_stoi(const WCHAR *ws)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue