mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
[ATL] atlpath.h: This looked like a bug.
svn path=/trunk/; revision=72805
This commit is contained in:
parent
ee95d592f0
commit
844f4e8868
1 changed files with 5 additions and 4 deletions
|
@ -181,10 +181,11 @@ public:
|
|||
|
||||
BOOL CompactPathEx(UINT nMaxChars, DWORD dwFlags = 0)
|
||||
{
|
||||
StringType result;
|
||||
PXSTR str = result.GetBuffer(nMaxChars);
|
||||
PathCompactPathExX(str, m_strPath, nMaxChars, dwFlags);
|
||||
result.ReleaseBuffer();
|
||||
StringType strTemp;
|
||||
PXSTR str = strTemp.GetBuffer(nMaxChars);
|
||||
BOOL result = PathCompactPathExX(str, m_strPath, nMaxChars, dwFlags);
|
||||
strTemp.ReleaseBuffer();
|
||||
m_strPath = strTemp;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue