summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SendScreenshotPlus')
-rw-r--r--plugins/SendScreenshotPlus/src/Utils.cpp2
-rw-r--r--plugins/SendScreenshotPlus/src/mir_string.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SendScreenshotPlus/src/Utils.cpp b/plugins/SendScreenshotPlus/src/Utils.cpp
index e3ec5a8df7..fd7ab70eb4 100644
--- a/plugins/SendScreenshotPlus/src/Utils.cpp
+++ b/plugins/SendScreenshotPlus/src/Utils.cpp
@@ -364,7 +364,7 @@ BOOL GetEncoderClsid(wchar_t *wchMimeType, CLSID& clsidEncoder) {
if(pImageCodecInfo){
Gdiplus::GetImageEncoders(uiNum,uiSize,pImageCodecInfo);
for( UINT i=0; i<uiNum; ++i){
- if(!wcscmp(pImageCodecInfo[i].MimeType,wchMimeType)){
+ if(!mir_wstrcmp(pImageCodecInfo[i].MimeType,wchMimeType)){
clsidEncoder=pImageCodecInfo[i].Clsid;
bOk=TRUE;
}
diff --git a/plugins/SendScreenshotPlus/src/mir_string.cpp b/plugins/SendScreenshotPlus/src/mir_string.cpp
index d22754bd89..0a11dfa287 100644
--- a/plugins/SendScreenshotPlus/src/mir_string.cpp
+++ b/plugins/SendScreenshotPlus/src/mir_string.cpp
@@ -59,7 +59,7 @@ void mir_wstradd(wchar_t* &pszDest, const wchar_t* pszSrc)
size_t lenNew = lenDest + lenSrc + 1;
pszDest = (wchar_t *) mir_realloc(pszDest, sizeof(wchar_t)*lenNew);
- wcscpy(pszDest + lenDest, pszSrc);
+ mir_wstrcpy(pszDest + lenDest, pszSrc);
pszDest[lenNew-1] = 0;
}
}