mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-30 05:50:53 +03:00
winws: show adapter names in --nlm-list
This commit is contained in:
parent
3e1f705932
commit
f653c39290
@ -1003,6 +1003,11 @@ static bool AdapterID2Name(const GUID *guid,char *name,DWORD name_len)
|
||||
|
||||
if ((w_win32_error = RegOpenKeyExA(HKEY_LOCAL_MACHINE,sNetworkCards,0,KEY_ENUMERATE_SUB_KEYS,&hkNetworkCards)) == ERROR_SUCCESS)
|
||||
{
|
||||
guid2str(guid, sguid+1);
|
||||
sguid[0]='{';
|
||||
sguid[37]='}';
|
||||
sguid[38]='\0';
|
||||
|
||||
for (dwIndex=0;;dwIndex++)
|
||||
{
|
||||
dwLen=sizeof(sidx)-1;
|
||||
@ -1011,11 +1016,6 @@ static bool AdapterID2Name(const GUID *guid,char *name,DWORD name_len)
|
||||
{
|
||||
sidx[dwLen]='\0';
|
||||
|
||||
guid2str(guid, sguid+1);
|
||||
sguid[0]='{';
|
||||
sguid[37]='}';
|
||||
sguid[38]='\0';
|
||||
|
||||
if ((w_win32_error = RegOpenKeyExA(hkNetworkCards,sidx,0,KEY_QUERY_VALUE,&hkCard)) == ERROR_SUCCESS)
|
||||
{
|
||||
dwLen=sizeof(val)-1;
|
||||
|
Loading…
Reference in New Issue
Block a user