Author: bfreisen
Date: Sun Sep 25 21:14:23 2016
New Revision: 72805
URL:
http://svn.reactos.org/svn/reactos?rev=72805&view=rev
Log:
[ATL] atlpath.h: This looked like a bug.
Modified:
trunk/reactos/sdk/lib/atl/atlpath.h
Modified: trunk/reactos/sdk/lib/atl/atlpath.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/sdk/lib/atl/atlpath.h?rev=…
==============================================================================
--- trunk/reactos/sdk/lib/atl/atlpath.h [iso-8859-1] (original)
+++ trunk/reactos/sdk/lib/atl/atlpath.h [iso-8859-1] Sun Sep 25 21:14:23 2016
@@ -181,10 +181,11 @@
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;
}