diff options
author | George Hazan <ghazan@miranda.im> | 2021-12-26 16:39:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-12-26 16:39:04 +0300 |
commit | 62a186697df33c96dc1a6dac0f4dfc38652fb96f (patch) | |
tree | 1437d0906218fae8827aed384026f2b7e656f4ac /plugins/CrashDumper | |
parent | fcbb395dc7ff3edab972b6d4b27dbbfb3305f5d7 (diff) |
BYTE -> uint8_t
Diffstat (limited to 'plugins/CrashDumper')
-rw-r--r-- | plugins/CrashDumper/src/stdafx.h | 2 | ||||
-rw-r--r-- | plugins/CrashDumper/src/upload.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/plugins/CrashDumper/src/stdafx.h b/plugins/CrashDumper/src/stdafx.h index 0059d13503..c35c36a8bb 100644 --- a/plugins/CrashDumper/src/stdafx.h +++ b/plugins/CrashDumper/src/stdafx.h @@ -80,7 +80,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. struct CMPlugin : public PLUGIN<CMPlugin>
{
- CMOption<BYTE> bCatchCrashes, bClassicDates, bUploadChanged, bUseSubFolder, bSuccessPopups;
+ CMOption<uint8_t> bCatchCrashes, bClassicDates, bUploadChanged, bUseSubFolder, bSuccessPopups;
bool bNeedRestart = false, bServiceMode = false;
diff --git a/plugins/CrashDumper/src/upload.cpp b/plugins/CrashDumper/src/upload.cpp index 099dc5f694..075c448336 100644 --- a/plugins/CrashDumper/src/upload.cpp +++ b/plugins/CrashDumper/src/upload.cpp @@ -20,11 +20,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. HNETLIBUSER hNetlibUser;
-static void arrayToHex(BYTE* data, size_t datasz, char* res)
+static void arrayToHex(uint8_t* data, size_t datasz, char* res)
{
char* resptr = res;
for (unsigned i = 0; i < datasz; i++) {
- const BYTE ch = data[i];
+ const uint8_t ch = data[i];
const char ch0 = (char)(ch >> 4);
*resptr++ = (char)((ch0 <= 9) ? ('0' + ch0) : (('a' - 10) + ch0));
@@ -47,11 +47,11 @@ void GetLoginStr(char* user, size_t szuser, char* pass) user[0] = 0;
if (g_plugin.getString("Password", &dbv) == 0) {
- BYTE hash[16];
+ uint8_t hash[16];
mir_md5_state_t context;
mir_md5_init(&context);
- mir_md5_append(&context, (BYTE*)dbv.pszVal, (int)mir_strlen(dbv.pszVal));
+ mir_md5_append(&context, (uint8_t*)dbv.pszVal, (int)mir_strlen(dbv.pszVal));
mir_md5_finish(&context, hash);
arrayToHex(hash, sizeof(hash), pass);
@@ -224,7 +224,7 @@ bool ProcessVIHash(bool store) CMStringW buffer;
PrintVersionInfo(buffer, 0);
- BYTE hash[16];
+ uint8_t hash[16];
mir_md5_state_t context;
mir_md5_init(&context);
|