Author: hbelusca
Date: Wed Jan 18 12:48:50 2017
New Revision: 73579
URL:
http://svn.reactos.org/svn/reactos?rev=73579&view=rev
Log:
[SHELL32]: Fix the "CNewMenu.cpp:432: Unexpected failure 80070002." debug line
that appears when one tries to create a new file using the explorer (note: did not happen
for new directories).
CORE-12684 #resolve #comment Fixed in r73579.
Modified:
trunk/reactos/dll/win32/shell32/CNewMenu.cpp
Modified: trunk/reactos/dll/win32/shell32/CNewMenu.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shell32/CNewMenu…
==============================================================================
--- trunk/reactos/dll/win32/shell32/CNewMenu.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shell32/CNewMenu.cpp [iso-8859-1] Wed Jan 18 12:48:50 2017
@@ -530,7 +530,9 @@
/* Build new file name */
LoadStringW(shell32_hInstance, FCIDM_SHVIEW_NEW, wszBuf, _countof(wszBuf));
- StringCchCatExW(wszPath, _countof(wszPath), L"\\",
&pwszFilename, &cchFilenameMax, 0);
+ // FIXME: PathCchAddBackslashExW(wszPath, _countof(wszPath),
&pwszFilename, &cchFilenameMax);
+ pwszFilename = PathAddBackslashW(wszPath);
+ cchFilenameMax = wcslen(wszPath) + 1;
StringCchPrintfW(pwszFilename, cchFilenameMax, L"%s %s%s", wszBuf,
pItem->pwszDesc, pItem->pwszExt);
/* Find unique name */