summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/MenuItemEx/src/main.cpp18
1 files changed, 3 insertions, 15 deletions
diff --git a/plugins/MenuItemEx/src/main.cpp b/plugins/MenuItemEx/src/main.cpp
index 823434de2d..28efa1bea9 100644
--- a/plugins/MenuItemEx/src/main.cpp
+++ b/plugins/MenuItemEx/src/main.cpp
@@ -489,21 +489,9 @@ INT_PTR CALLBACK AuthReqWndProc(HWND hdlg,UINT msg,WPARAM wparam,LPARAM lparam)
switch(LOWORD(wparam)) {
case IDOK:
{
- char szReason[256] = {0};
-
- WCHAR wszReason[256] = {0};
-
- if (CallService(MS_SYSTEM_GETVERSION, 0, 0) < 0x00090007)
- {
- GetDlgItemTextA(hdlg,IDC_REASON,szReason,255);
- CallContactService(hcontact,PSS_AUTHREQUEST,0,(LPARAM)szReason);
- }
- else
- {
- GetDlgItemText(hdlg,IDC_REASON,wszReason,255);
- CallContactService(hcontact,PSS_AUTHREQUESTW,0,(LPARAM)wszReason);
- }
-
+ TCHAR tszReason[256] = {0};
+ GetDlgItemText(hdlg,IDC_REASON,tszReason,255);
+ CallContactService(hcontact,PSS_AUTHREQUESTT,0,(LPARAM)tszReason);
} // fall through
case IDCANCEL:
DestroyWindow(hdlg);