summaryrefslogtreecommitdiff
path: root/plugins/ShellExt/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ShellExt/src')
-rw-r--r--plugins/ShellExt/src/shlcom.cpp2
-rw-r--r--plugins/ShellExt/src/shlext.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/ShellExt/src/shlcom.cpp b/plugins/ShellExt/src/shlcom.cpp
index a4442d1460..5f77e9b231 100644
--- a/plugins/ShellExt/src/shlcom.cpp
+++ b/plugins/ShellExt/src/shlcom.cpp
@@ -95,7 +95,7 @@ BOOL AddToList(TAddArgList& args)
szThis = args.szFile;
args.szFile = szBuf;
int cchThis = args.cch;
- args.cch = (int)strlen(szBuf) + 1;
+ args.cch = (int)mir_strlen(szBuf) + 1;
// recurse
BOOL Result = AddToList(args);
// restore
diff --git a/plugins/ShellExt/src/shlext.cpp b/plugins/ShellExt/src/shlext.cpp
index 977232ba19..7b30f1bb73 100644
--- a/plugins/ShellExt/src/shlext.cpp
+++ b/plugins/ShellExt/src/shlext.cpp
@@ -443,7 +443,7 @@ static void BuildMenus(TEnumData *lParam)
psd->szProfile = "MRU";
psd->fTypes = dtGroup;
// the IPC string pointer wont be around forever, must make a copy
- psd->cch = (int)strlen(lParam->ipch->MRUMenuName);
+ psd->cch = (int)mir_strlen(lParam->ipch->MRUMenuName);
psd->szText = (LPSTR)HeapAlloc(hDllHeap, 0, psd->cch + 1);
lstrcpynA(psd->szText, lParam->ipch->MRUMenuName, sizeof(lParam->ipch->MRUMenuName) - 1);
@@ -480,7 +480,7 @@ static void BuildMenus(TEnumData *lParam)
RemoveCheckmarkSpace(hGroupMenu);
psd = (TMenuDrawInfo*)HeapAlloc(hDllHeap, 0, sizeof(TMenuDrawInfo));
- psd->cch = (int)strlen(lParam->ipch->MirandaName);
+ psd->cch = (int)mir_strlen(lParam->ipch->MirandaName);
psd->szText = (LPSTR)HeapAlloc(hDllHeap, 0, psd->cch + 1);
lstrcpynA(psd->szText, lParam->ipch->MirandaName, sizeof(lParam->ipch->MirandaName) - 1);
// there may not be a profile name