mirror of https://github.com/infosecn1nja/C3.git
Fix string lifetime issue
parent
c822094de5
commit
127caa252f
|
@ -34,11 +34,11 @@ namespace FSecure::Sql
|
||||||
{
|
{
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case SQL_HANDLE_ENV: return OBF("ENV");
|
case SQL_HANDLE_ENV: return OBF_STR("ENV");
|
||||||
case SQL_HANDLE_STMT: return OBF("STMT");
|
case SQL_HANDLE_STMT: return OBF_STR("STMT");
|
||||||
case SQL_HANDLE_DBC: return OBF("DBC");
|
case SQL_HANDLE_DBC: return OBF_STR("DBC");
|
||||||
case SQL_HANDLE_DESC: return OBF("DESC");
|
case SQL_HANDLE_DESC: return OBF_STR("DESC");
|
||||||
default: return "";
|
default: return ""s;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
throw std::runtime_error(OBF_STR("SQLAllocHandle for failed. handle type: ") + GetTypeString(type));
|
throw std::runtime_error(OBF_STR("SQLAllocHandle for failed. handle type: ") + GetTypeString(type));
|
||||||
|
|
Loading…
Reference in New Issue