mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 08:15:41 +00:00
[SHELL32]: Code formatting only.
svn path=/trunk/; revision=73582
This commit is contained in:
parent
1f1f5a4c49
commit
47df3c243f
1 changed files with 15 additions and 5 deletions
|
@ -463,7 +463,7 @@ HRESULT CNewMenu::CreateNewFolder(LPCMINVOKECOMMANDINFO lpici)
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
/* Create the new directory and show the appropriate dialog in case of error */
|
/* 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;
|
return E_FAIL;
|
||||||
|
|
||||||
/* Show and select the new item in the def view */
|
/* Show and select the new item in the def view */
|
||||||
|
@ -492,7 +492,7 @@ HRESULT CNewMenu::CreateNewItem(SHELLNEW_ITEM *pItem, LPCMINVOKECOMMANDINFO lpcm
|
||||||
STARTUPINFOW si;
|
STARTUPINFOW si;
|
||||||
PROCESS_INFORMATION pi;
|
PROCESS_INFORMATION pi;
|
||||||
|
|
||||||
if (!ExpandEnvironmentStringsW((LPWSTR)pItem->pData, wszBuf, MAX_PATH))
|
if (!ExpandEnvironmentStringsW((LPWSTR)pItem->pData, wszBuf, _countof(wszBuf)))
|
||||||
{
|
{
|
||||||
TRACE("ExpandEnvironmentStrings failed\n");
|
TRACE("ExpandEnvironmentStrings failed\n");
|
||||||
break;
|
break;
|
||||||
|
@ -502,12 +502,14 @@ HRESULT CNewMenu::CreateNewItem(SHELLNEW_ITEM *pItem, LPCMINVOKECOMMANDINFO lpcm
|
||||||
Ptr = wcsstr(wszBuf, L"%1");
|
Ptr = wcsstr(wszBuf, L"%1");
|
||||||
if (Ptr)
|
if (Ptr)
|
||||||
{
|
{
|
||||||
Ptr[1] = 's';
|
Ptr[1] = L's';
|
||||||
StringCbPrintfW(wszTemp, sizeof(wszTemp), wszBuf, wszPath);
|
StringCbPrintfW(wszTemp, sizeof(wszTemp), wszBuf, wszPath);
|
||||||
pwszCmd = wszTemp;
|
pwszCmd = wszTemp;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
pwszCmd = wszBuf;
|
pwszCmd = wszBuf;
|
||||||
|
}
|
||||||
|
|
||||||
/* Create process */
|
/* Create process */
|
||||||
ZeroMemory(&si, sizeof(si));
|
ZeroMemory(&si, sizeof(si));
|
||||||
|
@ -516,10 +518,14 @@ HRESULT CNewMenu::CreateNewItem(SHELLNEW_ITEM *pItem, LPCMINVOKECOMMANDINFO lpcm
|
||||||
{
|
{
|
||||||
CloseHandle(pi.hProcess);
|
CloseHandle(pi.hProcess);
|
||||||
CloseHandle(pi.hThread);
|
CloseHandle(pi.hThread);
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
ERR("Failed to create process\n");
|
ERR("Failed to create process\n");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case SHELLNEW_TYPE_DATA:
|
case SHELLNEW_TYPE_DATA:
|
||||||
case SHELLNEW_TYPE_FILENAME:
|
case SHELLNEW_TYPE_FILENAME:
|
||||||
case SHELLNEW_TYPE_NULLFILE:
|
case SHELLNEW_TYPE_NULLFILE:
|
||||||
|
@ -555,8 +561,11 @@ HRESULT CNewMenu::CreateNewItem(SHELLNEW_ITEM *pItem, LPCMINVOKECOMMANDINFO lpcm
|
||||||
|
|
||||||
/* Close file now */
|
/* Close file now */
|
||||||
CloseHandle(hFile);
|
CloseHandle(hFile);
|
||||||
} else
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
bSuccess = FALSE;
|
bSuccess = FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
if (pItem->Type == SHELLNEW_TYPE_FILENAME)
|
if (pItem->Type == SHELLNEW_TYPE_FILENAME)
|
||||||
{
|
{
|
||||||
|
@ -578,6 +587,7 @@ HRESULT CNewMenu::CreateNewItem(SHELLNEW_ITEM *pItem, LPCMINVOKECOMMANDINFO lpcm
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case SHELLNEW_TYPE_INVALID:
|
case SHELLNEW_TYPE_INVALID:
|
||||||
ERR("Invalid type\n");
|
ERR("Invalid type\n");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue