mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-03-11 06:54:06 +00:00
Merge branch 'dev' of http://git.int.zerotier.com/ZeroTier/ZeroTierOne into dev
This commit is contained in:
commit
52fad6e18f
4
.gitattributes
vendored
Normal file
4
.gitattributes
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
ext/bin/tap-windows-ndis6/x64/zttap300.inf eol=crlf
|
||||||
|
ext/bin/tap-windows-ndis6/x64.old/zttap300.inf eol=crlf
|
||||||
|
ext/bin/tap-windows-ndis6/x86/zttap300.inf eol=crlf
|
||||||
|
windows/TapDriver6/zttap300.inf eol=crlf
|
@ -112,7 +112,7 @@ std::shared_ptr<EthernetTap> EthernetTap::newInstance(
|
|||||||
-1,
|
-1,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
RPC_C_AUTHN_LEVEL_DEFAULT,
|
RPC_C_AUTHN_LEVEL_PKT,
|
||||||
RPC_C_IMP_LEVEL_IMPERSONATE,
|
RPC_C_IMP_LEVEL_IMPERSONATE,
|
||||||
NULL,
|
NULL,
|
||||||
EOAC_NONE,
|
EOAC_NONE,
|
||||||
@ -120,6 +120,7 @@ std::shared_ptr<EthernetTap> EthernetTap::newInstance(
|
|||||||
);
|
);
|
||||||
if (FAILED(hres)) {
|
if (FAILED(hres)) {
|
||||||
CoUninitialize();
|
CoUninitialize();
|
||||||
|
fprintf(stderr, "WinEthernetTap: Failed to initialize security");
|
||||||
throw std::runtime_error("WinEthernetTap: Failed to initialize security");
|
throw std::runtime_error("WinEthernetTap: Failed to initialize security");
|
||||||
}
|
}
|
||||||
_comInit = true;
|
_comInit = true;
|
||||||
|
@ -816,13 +816,7 @@ void WindowsEthernetTap::setFriendlyName(const char *dn)
|
|||||||
RegCloseKey(ifp);
|
RegCloseKey(ifp);
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT hr = CoInitialize(nullptr);
|
HRESULT hr = S_OK;
|
||||||
if (hr != S_OK) return;
|
|
||||||
CoInitializeSecurity(NULL, -1, NULL, NULL,
|
|
||||||
RPC_C_AUTHN_LEVEL_PKT,
|
|
||||||
RPC_C_IMP_LEVEL_IMPERSONATE,
|
|
||||||
NULL, EOAC_NONE, NULL);
|
|
||||||
if (hr != S_OK) return;
|
|
||||||
|
|
||||||
INetSharingManager *nsm;
|
INetSharingManager *nsm;
|
||||||
hr = CoCreateInstance(__uuidof(NetSharingManager), NULL, CLSCTX_ALL, __uuidof(INetSharingManager), (void**)&nsm);
|
hr = CoCreateInstance(__uuidof(NetSharingManager), NULL, CLSCTX_ALL, __uuidof(INetSharingManager), (void**)&nsm);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user