summaryrefslogtreecommitdiff
path: root/plugins/AssocMgr/reg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AssocMgr/reg.cpp')
-rw-r--r--plugins/AssocMgr/reg.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/AssocMgr/reg.cpp b/plugins/AssocMgr/reg.cpp
index 09b58a1462..53cee0a90a 100644
--- a/plugins/AssocMgr/reg.cpp
+++ b/plugins/AssocMgr/reg.cpp
@@ -115,9 +115,9 @@ char *MakeUrlClassName(const char *pszUrl)
return pszClass;
}
-static BOOL IsFileClassName(const char *pszClassName,const char **ppszFileExt)
+static BOOL IsFileClassName(char *pszClassName, char **ppszFileExt)
{
- *ppszFileExt=strchr(pszClassName,'.');
+ *ppszFileExt = strchr(pszClassName,'.');
return *ppszFileExt!=NULL;
}
@@ -165,7 +165,7 @@ static BOOL IsValidRunCommand(const TCHAR *pszRunCmd)
{
TCHAR *buf,*pexe,*pargs;
TCHAR szFullExe[MAX_PATH],*pszFilePart;
- buf=lstrcpy(_alloca((lstrlen(pszRunCmd)+1)*sizeof(TCHAR)),pszRunCmd);
+ buf=lstrcpy((TCHAR*)_alloca((lstrlen(pszRunCmd)+1)*sizeof(TCHAR)),pszRunCmd);
/* split into executable path and arguments */
if(buf[0]==_T('\"')) {
pargs=_tcschr(&buf[1],_T('\"'));