[ROSTESTS] fix x64 build and fix/disable warnings

This commit is contained in:
Timo Kreuzer 2019-05-30 17:12:28 +02:00
parent 6a67450893
commit 42d2d5ec9c
56 changed files with 229 additions and 171 deletions

View file

@ -1367,15 +1367,16 @@ protected:
// get the total size of a multistring
static ULONG _GetMultiStringSize(LPCTSTR pszz)
{
int count = 0;
size_t count = 0;
do
{
int len = _tcslen(pszz);
size_t len = _tcslen(pszz);
count += len + 1;
pszz += len + 1;
} while (*pszz != TEXT('\0'));
++count;
return count * sizeof(TCHAR);
ATLASSERT(count * sizeof(TCHAR) <= ULONGMAX);
return (ULONG)count * sizeof(TCHAR);
}
// delete key recursively