summaryrefslogtreecommitdiff
path: root/plugins/DbChecker/src/worker.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-26 15:13:30 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-26 15:13:30 +0300
commitd7e53c4d5a748d5ef8c934e90dc59ff23c667420 (patch)
tree2b0c16de953e182321a0314b6ce3b909f428731f /plugins/DbChecker/src/worker.cpp
parent129687d805025b4e292174ffb3d224a55baf24d2 (diff)
WCHAR -> wchar_t
Diffstat (limited to 'plugins/DbChecker/src/worker.cpp')
-rw-r--r--plugins/DbChecker/src/worker.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/DbChecker/src/worker.cpp b/plugins/DbChecker/src/worker.cpp
index c6fb08a283..0c39577ec4 100644
--- a/plugins/DbChecker/src/worker.cpp
+++ b/plugins/DbChecker/src/worker.cpp
@@ -28,8 +28,8 @@ static bool ConvertOldEvent(DBEVENTINFO &dbei)
int msglen = (int)mir_strlen((char *)dbei.pBlob) + 1, msglenW = 0;
if (msglen != (int)dbei.cbBlob) {
- int count = ((dbei.cbBlob - msglen) / sizeof(WCHAR));
- WCHAR *p = (WCHAR *)&dbei.pBlob[msglen];
+ int count = ((dbei.cbBlob - msglen) / sizeof(wchar_t));
+ wchar_t *p = (wchar_t *)&dbei.pBlob[msglen];
for (int i = 0; i < count; i++) {
if (p[i] == 0) {
msglenW = i;
@@ -40,7 +40,7 @@ static bool ConvertOldEvent(DBEVENTINFO &dbei)
char *utf8str;
if (msglenW > 0 && msglenW <= msglen)
- utf8str = mir_utf8encodeW((WCHAR *)&dbei.pBlob[msglen]);
+ utf8str = mir_utf8encodeW((wchar_t *)&dbei.pBlob[msglen]);
else
utf8str = mir_utf8encode((char *)dbei.pBlob);