From 62a186697df33c96dc1a6dac0f4dfc38652fb96f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Dec 2021 16:39:04 +0300 Subject: BYTE -> uint8_t --- plugins/CrashDumper/src/stdafx.h | 2 +- plugins/CrashDumper/src/upload.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/CrashDumper') 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 . struct CMPlugin : public PLUGIN { - CMOption bCatchCrashes, bClassicDates, bUploadChanged, bUseSubFolder, bSuccessPopups; + CMOption 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 . 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); -- cgit v1.2.3