summaryrefslogtreecommitdiff
path: root/src/modules/srawaymsg/awaymsg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/srawaymsg/awaymsg.cpp')
-rw-r--r--src/modules/srawaymsg/awaymsg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/srawaymsg/awaymsg.cpp b/src/modules/srawaymsg/awaymsg.cpp
index f1c8bbc46e..d4435f8e3c 100644
--- a/src/modules/srawaymsg/awaymsg.cpp
+++ b/src/modules/srawaymsg/awaymsg.cpp
@@ -85,7 +85,7 @@ static INT_PTR CALLBACK ReadAwayMsgDlgProc(HWND hwndDlg, UINT message, WPARAM wP
if (ack->result != ACKRESULT_SUCCESS) break;
if (dat->hAwayMsgEvent && ack->hProcess == dat->hSeq) { UnhookEvent(dat->hAwayMsgEvent); dat->hAwayMsgEvent = NULL; }
-#ifdef _UNICODE
+
DBVARIANT dbv;
bool unicode = !DBGetContactSetting(dat->hContact, "CList", "StatusMsg", &dbv) &&
(dbv.type == DBVT_UTF8 || dbv.type == DBVT_WCHAR);
@@ -96,7 +96,7 @@ static INT_PTR CALLBACK ReadAwayMsgDlgProc(HWND hwndDlg, UINT message, WPARAM wP
SetDlgItemText(hwndDlg, IDC_MSG, dbv.pwszVal);
}
else
-#endif
+
SetDlgItemTextA(hwndDlg, IDC_MSG, (const char*)ack->lParam);
ShowWindow(GetDlgItem(hwndDlg, IDC_RETRIEVING), SW_HIDE);