parent
4d1ea71a31
commit
8ee89c774b
|
@ -92,12 +92,12 @@ void DynamicLibrary::LoadLibraryPermanently(const char* filename) {
|
||||||
if (filename) {
|
if (filename) {
|
||||||
HMODULE a_handle = LoadLibrary(filename);
|
HMODULE a_handle = LoadLibrary(filename);
|
||||||
|
|
||||||
if (a_handle == 0)
|
if (a_handle == 0)
|
||||||
ThrowError(std::string(filename) + ": Can't open : ");
|
ThrowError(std::string(filename) + ": Can't open : ");
|
||||||
|
|
||||||
OpenedHandles.push_back(a_handle);
|
OpenedHandles.push_back(a_handle);
|
||||||
} else {
|
} else {
|
||||||
// When no file is specified, enumerate all DLLs and EXEs in the
|
// When no file is specified, enumerate all DLLs and EXEs in the
|
||||||
// process.
|
// process.
|
||||||
EnumerateLoadedModules(GetCurrentProcess(), ELM_Callback, 0);
|
EnumerateLoadedModules(GetCurrentProcess(), ELM_Callback, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue