mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 14:25:52 +00:00
[IPCONFIG] Indentation and coding style fixes. No code changes!
This commit is contained in:
parent
cc25a266f2
commit
cd579382b5
1 changed files with 81 additions and 79 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue