{
newCapacity = 1;
}
- else if(newCapacity < UINT_MAX/2)
+ else if(newCapacity < UINT_MAX/2)
{
newCapacity *= 2;
}
WinAdapter* pNewBegin = realloc(pWinAdapterBegin, newCapacity * sizeof(*pWinAdapterBegin));
if (!pNewBegin)
- result = FALSE;
- else
+ result = FALSE;
+ else
{
pWinAdapterCapacity = pNewBegin + newCapacity;
pWinAdapterEnd = pNewBegin + oldCapacity;
{
size_t nameLen = (strlen(szName) + 1)*sizeof(szName[0]);
pWinAdapterEnd->szName = malloc(nameLen);
- if (!pWinAdapterEnd->szName)
- result = FALSE;
- else
+ if (!pWinAdapterEnd->szName)
+ result = FALSE;
+ else
{
memcpy(pWinAdapterEnd->szName, szName, nameLen);
pWinAdapterEnd->luid = luid;