Compare commits
4 Commits
9e66d7f850
...
04d218c4fb
| Author | SHA1 | Date |
|---|---|---|
|
|
04d218c4fb | |
|
|
1ba3eded09 | |
|
|
739ff4d637 | |
|
|
e233233b94 |
|
|
@ -13,7 +13,7 @@ option(LIBICSNEO_BUILD_ICSNEOC "Build dynamic C library" ON)
|
||||||
option(LIBICSNEO_BUILD_ICSNEOC_STATIC "Build static C library" ON)
|
option(LIBICSNEO_BUILD_ICSNEOC_STATIC "Build static C library" ON)
|
||||||
option(LIBICSNEO_BUILD_ICSNEOLEGACY "Build icsnVC40 compatibility library" ON)
|
option(LIBICSNEO_BUILD_ICSNEOLEGACY "Build icsnVC40 compatibility library" ON)
|
||||||
option(LIBICSNEO_BUILD_ICSNEOLEGACY_STATIC "Build static icsnVC40 compatibility library" ON)
|
option(LIBICSNEO_BUILD_ICSNEOLEGACY_STATIC "Build static icsnVC40 compatibility library" ON)
|
||||||
set(LIBICSNEO_NPCAP_INCLUDE_DIR "" CACHE STRING "Npcap include directory; set to build with Npcap")
|
set(LIBICSNEO_NPCAP_INCLUDE_DIR "C:/Users/Vit/source/repos/npcap-sdk-1.13/Include" CACHE STRING "Npcap include directory; set to build with Npcap")
|
||||||
|
|
||||||
# Device Drivers
|
# Device Drivers
|
||||||
# You almost certainly don't want firmio for your build,
|
# You almost certainly don't want firmio for your build,
|
||||||
|
|
|
||||||
|
|
@ -362,7 +362,7 @@ APIEvent::Type Device::attemptToBeginCommunication() {
|
||||||
if(auto compVersions = com->getComponentVersionsSync())
|
if(auto compVersions = com->getComponentVersionsSync())
|
||||||
componentVersions = std::move(*compVersions);
|
componentVersions = std::move(*compVersions);
|
||||||
else
|
else
|
||||||
return getCommunicationNotEstablishedError();
|
report(APIEvent::Type::NotSupported, APIEvent::Severity::EventWarning); // outdated firmware
|
||||||
}
|
}
|
||||||
|
|
||||||
return APIEvent::Type::NoErrorFound;
|
return APIEvent::Type::NoErrorFound;
|
||||||
|
|
|
||||||
|
|
@ -34,9 +34,12 @@ PCAPDLL::PCAPDLL()
|
||||||
int len = GetSystemDirectory(dllPath, 480); // be safe
|
int len = GetSystemDirectory(dllPath, 480); // be safe
|
||||||
if (len) {
|
if (len) {
|
||||||
_tcscat_s(dllPath, 512, TEXT("\\Npcap"));
|
_tcscat_s(dllPath, 512, TEXT("\\Npcap"));
|
||||||
cookie = AddDllDirectory(dllPath);
|
WCHAR dllPath_w[512] = { 0 };
|
||||||
|
if (mbstowcs(dllPath_w, dllPath, 512)) {
|
||||||
|
cookie = AddDllDirectory(dllPath_w);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
dll = LoadLibraryEx(TEXT("wpcap.dll"), nullptr, LOAD_LIBRARY_SEARCH_USER_DIRS);
|
dll = LoadLibraryEx(TEXT("wpcap.dll"), nullptr, LOAD_LIBRARY_SEARCH_DEFAULT_DIRS);
|
||||||
|
|
||||||
if (cookie)
|
if (cookie)
|
||||||
RemoveDllDirectory(cookie);
|
RemoveDllDirectory(cookie);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue