| | |
| | | result = true; |
| | | } catch (const std::exception& ex) { |
| | | LOG_ERROR("Error calculating hw_identifier: %s", ex.what()); |
| | | #ifdef _DEBUG |
| | | #ifndef NDEBUG |
| | | cout << "Error occurred: " << ex.what() << std::endl; |
| | | #endif |
| | | } |
| | |
| | | string project; |
| | | size_t str_size; |
| | | if (callerInformation != nullptr && |
| | | (str_size = license::mstrnlen_s(callerInformation->feature_name, sizeof callerInformation->project_name)) > 0) { |
| | | (str_size = license::mstrnlen_s(callerInformation->feature_name, sizeof callerInformation->feature_name)) > 0) { |
| | | project = string(callerInformation->feature_name, str_size); |
| | | } else { |
| | | project = string(LCC_PROJECT_NAME); |
| | |
| | | license_out->days_left = 0; |
| | | } |
| | | } |
| | | #ifdef _DEBUG |
| | | #ifndef NDEBUG |
| | | cout << er << endl; |
| | | #endif |
| | | |