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