mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
quotation handling bug fixed
svn path=/trunk/; revision=1821
This commit is contained in:
parent
f57fc2af90
commit
5ac5ed1e37
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: RegistryTree.cpp,v 1.5 2001/04/16 05:07:23 narnaoud Exp $
|
/* $Id: RegistryTree.cpp,v 1.6 2001/04/24 22:32:31 narnaoud Exp $
|
||||||
*
|
*
|
||||||
* regexpl - Console Registry Explorer
|
* regexpl - Console Registry Explorer
|
||||||
*
|
*
|
||||||
|
@ -114,7 +114,8 @@ BOOL CRegistryTree::ChangeCurrentKey(const TCHAR *pszRelativePath)
|
||||||
if (pszBuffer[size-1] == _T('\\'))
|
if (pszBuffer[size-1] == _T('\\'))
|
||||||
pszBuffer[--size] = 0;
|
pszBuffer[--size] = 0;
|
||||||
|
|
||||||
if ((*pszBuffer == _T('\"'))&&(pszBuffer[size-1] == _T('\"')))
|
TCHAR *psz;
|
||||||
|
if (*pszBuffer == _T('\"') && (psz = _tcschr(pszBuffer+1,_T('\"'))) && size_t(psz-pszBuffer) == size-1)
|
||||||
{
|
{
|
||||||
size--;
|
size--;
|
||||||
pszBuffer[size] = 0;
|
pszBuffer[size] = 0;
|
||||||
|
|
Loading…
Reference in a new issue