Author: hbelusca
Date: Wed Jan 18 23:44:46 2017
New Revision: 73582
URL:
http://svn.reactos.org/svn/reactos?rev=73582&view=rev
Log:
[SHELL32]: Code formatting only.
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 23:44:46 2017
@@ -463,7 +463,7 @@
return E_FAIL;
/* Create the new directory and show the appropriate dialog in case of error */
- if (SHCreateDirectory (lpici->hwnd, wszName) != ERROR_SUCCESS)
+ if (SHCreateDirectory(lpici->hwnd, wszName) != ERROR_SUCCESS)
return E_FAIL;
/* Show and select the new item in the def view */
@@ -492,7 +492,7 @@
STARTUPINFOW si;
PROCESS_INFORMATION pi;
- if (!ExpandEnvironmentStringsW((LPWSTR)pItem->pData, wszBuf, MAX_PATH))
+ if (!ExpandEnvironmentStringsW((LPWSTR)pItem->pData, wszBuf,
_countof(wszBuf)))
{
TRACE("ExpandEnvironmentStrings failed\n");
break;
@@ -502,12 +502,14 @@
Ptr = wcsstr(wszBuf, L"%1");
if (Ptr)
{
- Ptr[1] = 's';
+ Ptr[1] = L's';
StringCbPrintfW(wszTemp, sizeof(wszTemp), wszBuf, wszPath);
pwszCmd = wszTemp;
}
else
+ {
pwszCmd = wszBuf;
+ }
/* Create process */
ZeroMemory(&si, sizeof(si));
@@ -516,10 +518,14 @@
{
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
- } else
+ }
+ else
+ {
ERR("Failed to create process\n");
+ }
break;
}
+
case SHELLNEW_TYPE_DATA:
case SHELLNEW_TYPE_FILENAME:
case SHELLNEW_TYPE_NULLFILE:
@@ -555,8 +561,11 @@
/* Close file now */
CloseHandle(hFile);
- } else
+ }
+ else
+ {
bSuccess = FALSE;
+ }
if (pItem->Type == SHELLNEW_TYPE_FILENAME)
{
@@ -578,6 +587,7 @@
}
break;
}
+
case SHELLNEW_TYPE_INVALID:
ERR("Invalid type\n");
break;