mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:35:41 +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,
|
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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue