[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.

svn path=/trunk/; revision=73579
This commit is contained in:
Hermès Bélusca-Maïto
2017-01-18 12:48:50 +00:00
parent a3aa3fb107
commit 99b6de6618
+3 -1
View File
@@ -530,7 +530,9 @@ HRESULT CNewMenu::CreateNewItem(SHELLNEW_ITEM *pItem, LPCMINVOKECOMMANDINFO lpcm
/* 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 */