mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 03:20:11 +01:00
trunk/branch integration: compile fix
This commit is contained in:
@@ -61,7 +61,10 @@ void SharedLibraryImpl::loadImpl(const std::string& path)
|
||||
FastMutex::ScopedLock lock(_mutex);
|
||||
|
||||
if (_handle) throw LibraryAlreadyLoadedException(_path);
|
||||
_handle = LoadLibraryA(path.c_str());
|
||||
DWORD flags(0);
|
||||
Path p(path);
|
||||
if (p.isAbsolute()) flags |= LOAD_WITH_ALTERED_SEARCH_PATH;
|
||||
_handle = LoadLibraryExA(path.c_str(), 0, flags);
|
||||
if (!_handle) throw LibraryLoadException(path);
|
||||
_path = path;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user