- Fix gdb2 and regexpl warnings under gcc 4.4.0
[reactos.git] / rosapps / applications / sysutils / regexpl / RegistryTree.cpp
index 75aaaa6..04e21d3 100644 (file)
@@ -95,7 +95,7 @@ BOOL CRegistryTree::ChangeCurrentKey(const TCHAR *pszRelativePath)
     GotoRoot();  // This is full absolute path.
 
   // split path to key names.
     GotoRoot();  // This is full absolute path.
 
   // split path to key names.
-       TCHAR *pszSeps = _T("\\");
+       const TCHAR *pszSeps = _T("\\");
 
   // Make buffer and copy relative path into it.
   TCHAR *pszBuffer = new TCHAR[_tcslen(pszRelativePath)+1];
 
   // Make buffer and copy relative path into it.
   TCHAR *pszBuffer = new TCHAR[_tcslen(pszRelativePath)+1];
@@ -124,7 +124,7 @@ BOOL CRegistryTree::ChangeCurrentKey(const TCHAR *pszRelativePath)
     }
   }
 
     }
   }
 
-       TCHAR *pszNewKey = _tcstok(pszBuffer,pszSeps);
+       const TCHAR *pszNewKey = _tcstok(pszBuffer,pszSeps);
 
        if ((!pszNewKey)&&((*pszRelativePath != _T('\\'))||(*(pszRelativePath+1) != 0)))
        {
 
        if ((!pszNewKey)&&((*pszRelativePath != _T('\\'))||(*(pszRelativePath+1) != 0)))
        {