summaryrefslogtreecommitdiff
path: root/plugins/ExternalAPI
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-19 08:02:41 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-19 08:02:41 +0000
commit08dc125be616458112368e7154b29d5d23f1126e (patch)
tree1c27ef9b8525f45913c19bb6f4c18a31b6593749 /plugins/ExternalAPI
parenta63798c1b60eeb77352323ad4545630cdc5458f2 (diff)
Unicode in status message plugins
git-svn-id: http://svn.miranda-ng.org/main/trunk@1033 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ExternalAPI')
-rw-r--r--plugins/ExternalAPI/m_skin_eng.h16
-rw-r--r--plugins/ExternalAPI/m_statusplugins.h4
2 files changed, 10 insertions, 10 deletions
diff --git a/plugins/ExternalAPI/m_skin_eng.h b/plugins/ExternalAPI/m_skin_eng.h
index c099a28be7..c6e3e181d7 100644
--- a/plugins/ExternalAPI/m_skin_eng.h
+++ b/plugins/ExternalAPI/m_skin_eng.h
@@ -181,7 +181,7 @@ int __inline SkinDrawWindowBack(HWND hwndIn, HDC hdc, RECT * rcClip, char * obje
rq.hDC=hdc;
rq.rcDestRect=rc;
rq.rcClipRect=*rcClip;
- strncpy(rq.szObjectID,objectID,sizeof(rq.szObjectID));
+ lstrcpynA(rq.szObjectID,objectID,sizeof(rq.szObjectID));
///ske_Service_DrawGlyph((WPARAM)&rq,0); //$$$
return CallService(MS_SKIN_DRAWGLYPH,(WPARAM)&rq,0);
}
@@ -253,13 +253,13 @@ static BOOL __inline ScreenToClientRect(HWND hWnd, LPRECT lpRect)
//}
static int __inline SkinDrawGlyph(HDC hdc, RECT * rcSize, RECT * rcClip, char * objectID)
{
- SKINDRAWREQUEST rq;
- if (!objectID) return 0;
- rq.hDC=hdc;
- rq.rcDestRect=*rcSize;
- rq.rcClipRect=*rcClip;
- strncpy(rq.szObjectID,objectID,sizeof(rq.szObjectID));
- return CallService(MS_SKIN_DRAWGLYPH,(WPARAM)&rq,0);
+ SKINDRAWREQUEST rq;
+ if (!objectID) return 0;
+ rq.hDC=hdc;
+ rq.rcDestRect=*rcSize;
+ rq.rcClipRect=*rcClip;
+ lstrcpynA(rq.szObjectID,objectID,sizeof(rq.szObjectID));
+ return CallService(MS_SKIN_DRAWGLYPH,(WPARAM)&rq,0);
}
//#include "../hdr/modern_skin_selector.h"
diff --git a/plugins/ExternalAPI/m_statusplugins.h b/plugins/ExternalAPI/m_statusplugins.h
index 5139673c6a..34a3f1da90 100644
--- a/plugins/ExternalAPI/m_statusplugins.h
+++ b/plugins/ExternalAPI/m_statusplugins.h
@@ -25,7 +25,7 @@
typedef struct {
int cbSize;
char *szName; // pointer to protocol modulename
- char *szMsg; // pointer to the status message (may be NULL)
+ TCHAR *szMsg; // pointer to the status message (may be NULL)
WORD status; // the status
WORD lastStatus;// last status
TCHAR *tszAccName;
@@ -133,7 +133,7 @@ typedef struct {
// returns 0
#define MS_KS_ANNOUNCESTATUSCHANGE "KeepStatus/AnnounceStatusChange"
-__inline static int announce_status_change(char *szProto, int newstatus, char *szMsg) {
+__inline static int announce_status_change(char *szProto, int newstatus, TCHAR *szMsg) {
PROTOCOLSETTINGEX ps;