]> git.sesse.net Git - casparcg/commitdiff
Log full path of the actual loaded iVGA DLL
authorHelge Norberg <helge.norberg@gmail.com>
Mon, 28 Oct 2013 10:52:21 +0000 (11:52 +0100)
committerHelge Norberg <helge.norberg@gmail.com>
Mon, 28 Oct 2013 10:52:21 +0000 (11:52 +0100)
modules/newtek/util/air_send.cpp

index a8699405ec95c5d9b8e632cc8f1f10e2fe136f51..f4ed5f935c8b908555d68969301616703840cf62 100644 (file)
@@ -54,12 +54,18 @@ const std::wstring& dll_name()
 std::shared_ptr<void> load_library()
 {
        auto module = LoadLibrary(dll_name().c_str());
-       
+
        if (!module)
                return nullptr;
 
        std::shared_ptr<void> lib(module, FreeLibrary);
 
+       wchar_t actualFilename[256];
+
+       GetModuleFileNameW(module, actualFilename, sizeof(actualFilename));
+
+       CASPAR_LOG(debug) << L"Loaded " << actualFilename;
+
        create = reinterpret_cast<decltype(create)>(
                        GetProcAddress(module, "AirSend_Create"));
        destroy = reinterpret_cast<decltype(destroy)>(