Changeset 04ef932 in nscp for modules/CheckNSCP
- Timestamp:
- 08/10/11 07:37:24 (22 months ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2
- Children:
- 54ac968
- Parents:
- e11d494
- File:
-
- 1 edited
-
modules/CheckNSCP/CheckNSCP.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
modules/CheckNSCP/CheckNSCP.cpp
re11d494 r04ef932 22 22 23 23 #include <file_helpers.hpp> 24 #include <unicode_char.hpp> 24 25 25 26 #include <settings/client/settings_client.hpp> … … 85 86 86 87 int CheckNSCP::get_crashes(std::wstring &last_crash) { 88 #ifdef WIN32 87 89 if (!file_helpers::checks::is_directory(crashFolder)) { 88 90 return 0; … … 109 111 last_crash = last_file; 110 112 return count; 113 #else 114 return 0; 115 #endif 111 116 } 112 117 … … 125 130 std::wstring last_crash; 126 131 int crash_count = get_crashes(last_crash); 127 if (crash_count > 0) 128 strEx::append_list(msg, strEx::itos(crash_count) + _T(" crash(es), last crash: ") + last_crash, _T(", ")); 132 if (crash_count > 0){ 133 std::wstring tmp = strEx::itos(crash_count) + _T(" crash(es), last crash: ") + last_crash; 134 strEx::append_list(msg, tmp, _T(", ")); 135 } 129 136 130 137 std::wstring last_error; 131 138 int err_count = get_errors(last_error); 132 if (err_count > 0) 133 strEx::append_list(msg, strEx::itos(err_count) + _T(" error(s), last error: ") + last_error, _T(", ")); 139 if (err_count > 0) { 140 std::wstring tmp = strEx::itos(err_count) + _T(" error(s), last error: ") + last_error; 141 strEx::append_list(msg, tmp, _T(", ")); 142 } 134 143 135 144 if (msg.empty())
Note: See TracChangeset
for help on using the changeset viewer.








