summaryrefslogtreecommitdiff
path: root/plugins/FileAsMessage/src/dialog.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2016-07-31 15:48:04 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2016-07-31 15:48:04 +0000
commit4adf822c903129add28d67ede452c7814bfdee4e (patch)
treef627a72c9c220b412ac40e3397ef6e238eac7978 /plugins/FileAsMessage/src/dialog.cpp
parentb0563aa067e81f3069d2718bbf5e5d3853bbb058 (diff)
FileAsMessage: - Fixed unicode conversion
git-svn-id: http://svn.miranda-ng.org/main/trunk@17149 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FileAsMessage/src/dialog.cpp')
-rw-r--r--plugins/FileAsMessage/src/dialog.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/FileAsMessage/src/dialog.cpp b/plugins/FileAsMessage/src/dialog.cpp
index a9940f2437..87fa0b194f 100644
--- a/plugins/FileAsMessage/src/dialog.cpp
+++ b/plugins/FileAsMessage/src/dialog.cpp
@@ -2,8 +2,8 @@
char *szFEMode[] =
{
- "Recv file",
- "Send file"
+ LPGEN("Recv file"),
+ LPGEN("Send file")
};
char* ltoax(char* s, DWORD value)
@@ -62,7 +62,7 @@ char cCmdList[CMD_COUNT] =
'.'
};
-static int CALLBACK PopupDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
+static LRESULT CALLBACK PopupDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
MCONTACT hContact = PUGetContact(hWnd);
HWND hDlg = (HWND)PUGetPluginData(hWnd);
@@ -106,11 +106,11 @@ void MakePopupMsg(HWND hDlg, MCONTACT hContact, char *msg)
POPUPDATA ppd = { 0 };
ppd.lchContact = hContact;
ppd.lchIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_SMALLICON));
- mir_strcpy(ppd.lpzContactName, (char*)pcli->pfnGetContactDisplayName(hContact, 0));
+ mir_strcpy(ppd.lpzContactName, _T2A(pcli->pfnGetContactDisplayName(hContact, 0)));
mir_strcpy(ppd.lpzText, msg);
ppd.colorBack = GetSysColor(COLOR_INFOBK);
ppd.colorText = GetSysColor(COLOR_INFOTEXT);
- ppd.PluginWindowProc = (WNDPROC)PopupDlgProc;
+ ppd.PluginWindowProc = PopupDlgProc;
ppd.PluginData = (void*)hDlg;
ppd.iSeconds = -1;
PUAddPopup(&ppd);
@@ -239,9 +239,9 @@ void FILEECHO::setState(DWORD state)
void FILEECHO::updateTitle()
{
- char newtitle[256], *contactName;
+ char newtitle[256];
- contactName = (char*)pcli->pfnGetContactDisplayName(hContact, 0);
+ char *contactName = _T2A(pcli->pfnGetContactDisplayName(hContact, 0));
if (iState == STATE_OPERATE && chunkCount != 0)
mir_snprintf(newtitle, "%d%% - %s: %s", chunkSent * 100 / chunkCount, Translate(szFEMode[inSend]), contactName);
else
@@ -842,7 +842,7 @@ void FILEECHO::perform(char *str)
};
};
-int FILEECHO::sendCmd(int id, int cmd, char *szParam, char *szPrefix)
+int FILEECHO::sendCmd(int, int cmd, char *szParam, char *szPrefix)
{
int buflen = (int)mir_strlen(szServicePrefix) + (int)mir_strlen(szParam) + 2;
if (szPrefix != NULL)