mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-22 14:23:59 -07:00
Merge branch 'dev' into rust-line-endings
This commit is contained in:
commit
3debadf90a
2 changed files with 11 additions and 6 deletions
|
@ -850,12 +850,14 @@ void WindowsEthernetTap::setFriendlyName(const char *dn)
|
|||
NETCON_PROPERTIES *ncp = nullptr;
|
||||
nc->GetProperties(&ncp);
|
||||
|
||||
GUID curId = ncp->guidId;
|
||||
if (curId == _deviceGuid) {
|
||||
wchar_t wtext[255];
|
||||
mbstowcs(wtext, dn, strlen(dn)+1);
|
||||
nc->Rename(wtext);
|
||||
found = true;
|
||||
if (ncp != nullptr) {
|
||||
GUID curId = ncp->guidId;
|
||||
if (curId == _deviceGuid) {
|
||||
wchar_t wtext[255];
|
||||
mbstowcs(wtext, dn, strlen(dn)+1);
|
||||
nc->Rename(wtext);
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
nc->Release();
|
||||
}
|
||||
|
|
3
zeroidc/.gitattributes
vendored
Normal file
3
zeroidc/.gitattributes
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
# disable autocrlf because it doesn't mix well with
|
||||
# vendored rust packages
|
||||
* text=false
|
Loading…
Add table
Add a link
Reference in a new issue