diff options
| author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-22 10:06:32 +0000 | 
|---|---|---|
| committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-22 10:06:32 +0000 | 
| commit | 5a17c9299e03bebf46169927abdeee34aaf8e854 (patch) | |
| tree | cbd13080f33ac0b6396b9d3b8ba31a3c98de59f8 /plugins/ShellExt/src | |
| parent | ed64312924e77707e7e5b5965c301692519f293a (diff) | |
replace strlen to mir_strlen
git-svn-id: http://svn.miranda-ng.org/main/trunk@13747 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ShellExt/src')
| -rw-r--r-- | plugins/ShellExt/src/shlcom.cpp | 2 | ||||
| -rw-r--r-- | plugins/ShellExt/src/shlext.cpp | 4 | 
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
  | 
