[IPCONFIG] Indentation and coding style fixes. No code changes!

This commit is contained in:
Eric Kohl 2019-06-13 02:35:16 +02:00
parent cc25a266f2
commit cd579382b5

View file

@ -32,8 +32,7 @@ HANDLE ProcessHeap;
int LoadStringAndOem(HINSTANCE hInst,
UINT uID,
LPTSTR szNode,
int byteSize
)
int byteSize)
{
TCHAR *szTmp;
int res;
@ -43,6 +42,7 @@ int LoadStringAndOem(HINSTANCE hInst,
{
return 0;
}
res = LoadString(hInst, uID, szTmp, byteSize);
CharToOem(szTmp, szNode);
HeapFree(ProcessHeap, 0, szTmp);
@ -235,7 +235,8 @@ LPTSTR GetConnectionType(LPTSTR lpClass)
ConType = NULL;
}
if (ConType) CharToOem(ConTypeTmp, ConType);
if (ConType)
CharToOem(ConTypeTmp, ConType);
HeapFree(ProcessHeap, 0, ConTypeTmp);
}
}
@ -376,7 +377,9 @@ LPTSTR GetConnectionDescription(LPTSTR lpClass)
}
}
else
{
lpConDesc = NULL;
}
break;
}
@ -424,7 +427,7 @@ VOID ShowInfo(BOOL bAll)
}
else
{
if( ERROR_NO_DATA != ret )
if (ret != ERROR_NO_DATA)
{
DoFormatMessage(0);
return;
@ -672,7 +675,6 @@ VOID Renew(LPTSTR Index)
CopyMemory(&AdapterInfo, &pInfo->Adapter[i], sizeof(IP_ADAPTER_INDEX_MAP));
_tprintf(_T("name - %ls\n"), pInfo->Adapter[i].Name);
/* Call IpRenewAddress to renew the IP address on the specified adapter. */
if (IpRenewAddress(&AdapterInfo) != NO_ERROR)
{