mirror of
https://github.com/reactos/CMake.git
synced 2025-02-26 06:55:34 +00:00
ERR: Fix crash of cmake on broken load commands
This commit is contained in:
parent
5e21538ebd
commit
0d8f8a0dc2
@ -206,10 +206,11 @@ bool cmLoadCommandCommand::InitialPass(std::vector<std::string> const& args)
|
|||||||
{
|
{
|
||||||
std::string err = "Attempt to load the library ";
|
std::string err = "Attempt to load the library ";
|
||||||
err += fullPath + " failed.";
|
err += fullPath + " failed.";
|
||||||
if ( cmDynamicLoader::LastError() )
|
const char* error = cmDynamicLoader::LastError();
|
||||||
|
if ( error )
|
||||||
{
|
{
|
||||||
err += " Additional error info is:\n";
|
err += " Additional error info is:\n";
|
||||||
err += cmDynamicLoader::LastError();
|
err += error;
|
||||||
}
|
}
|
||||||
this->SetError(err.c_str());
|
this->SetError(err.c_str());
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user