summaryrefslogtreecommitdiff
path: root/plugins/CmdLine
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-26 15:58:40 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-26 15:58:40 +0300
commitfcbb395dc7ff3edab972b6d4b27dbbfb3305f5d7 (patch)
tree8807aea6f2afce38b30ce60aa5ebf84a26992b73 /plugins/CmdLine
parentaf2958f2e82cb68392983da6f7f69fa3cd0c5276 (diff)
PBYTE -> uint8_t*
Diffstat (limited to 'plugins/CmdLine')
-rw-r--r--plugins/CmdLine/src/mimcmd_handlers.cpp4
-rw-r--r--plugins/CmdLine/src/utils.cpp2
-rw-r--r--plugins/CmdLine/src/utils.h4
3 files changed, 5 insertions, 5 deletions
diff --git a/plugins/CmdLine/src/mimcmd_handlers.cpp b/plugins/CmdLine/src/mimcmd_handlers.cpp
index d46e7b55b1..ac0342869c 100644
--- a/plugins/CmdLine/src/mimcmd_handlers.cpp
+++ b/plugins/CmdLine/src/mimcmd_handlers.cpp
@@ -705,7 +705,7 @@ void HandleMessageCommand(PCommand command, TArgument *argv, int argc, PReply re
DBEVENTINFO dbei = {};
dbei.eventType = EVENTTYPE_MESSAGE;
dbei.flags = DBEF_SENT | DBEF_UTF;
- dbei.pBlob = (PBYTE)szMessage.get();
+ dbei.pBlob = (uint8_t*)szMessage.get();
dbei.cbBlob = (DWORD)mir_strlen(szMessage) + 1;
dbei.szModule = ack->szModule;
dbei.timestamp = (DWORD)time(0);
@@ -1346,7 +1346,7 @@ void HandleHistoryCommand(PCommand command, TArgument *argv, int argc, PReply re
DBEVENTINFO dbEvent = {};
char message[4096];
- dbEvent.pBlob = (PBYTE)message;
+ dbEvent.pBlob = (uint8_t*)message;
DB::ECPTR pCursor(DB::Events(hContact));
while (MEVENT hEvent = pCursor.FetchNext()) {
diff --git a/plugins/CmdLine/src/utils.cpp b/plugins/CmdLine/src/utils.cpp
index 9dba308c9b..88952e7ed2 100644
--- a/plugins/CmdLine/src/utils.cpp
+++ b/plugins/CmdLine/src/utils.cpp
@@ -36,7 +36,7 @@ int Info(char *title, char *format, ...)
#define HEX_SIZE 8
-char *BinToHex(int size, PBYTE data)
+char *BinToHex(int size, uint8_t *data)
{
char *szresult = nullptr;
int maxSize = size * 2 + HEX_SIZE + 1;
diff --git a/plugins/CmdLine/src/utils.h b/plugins/CmdLine/src/utils.h
index 8b7b1258c7..75572a5c7e 100644
--- a/plugins/CmdLine/src/utils.h
+++ b/plugins/CmdLine/src/utils.h
@@ -31,8 +31,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
int Info(char *title, char *format, ...);
-char *BinToHex(int size, PBYTE data);
-void HexToBin(char *inData, ULONG &size, PBYTE &outData);
+char *BinToHex(int size, uint8_t *data);
+void HexToBin(char *inData, ULONG &size, uint8_t* &outData);
void ScreenToClient(HWND hWnd, LPRECT rect);
void AnchorMoveWindow(HWND window, const WINDOWPOS *parentPos, int anchors);