mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 19:05:52 +00:00
- Fix gdb2 and regexpl warnings under gcc 4.4.0
svn path=/trunk/; revision=42968
This commit is contained in:
parent
a8d673a487
commit
a557cda82c
8 changed files with 16 additions and 12 deletions
|
@ -95,7 +95,7 @@ BOOL CRegistryTree::ChangeCurrentKey(const TCHAR *pszRelativePath)
|
|||
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];
|
||||
|
@ -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)))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue