[BROWSEUI]

* Fix a 'pasta.
* Open something less stupid when clicking on "Is this copy legal?" in the Help menu.

svn path=/branches/shell-experiments/; revision=65099
This commit is contained in:
David Quintana
2014-10-29 12:32:46 +00:00
parent a0ec7d507f
commit 5ee771bbc6
2 changed files with 2 additions and 9 deletions
+1 -1
View File
@@ -453,7 +453,7 @@ static HRESULT GetFavoritesFolder(IShellFolder ** ppsfFavorites, LPITEMIDLIST *
if (FAILED_UNEXPECTEDLY(hr))
return hr;
TRACE("COMMON start menu obtained.\n");
TRACE("COMMON favorites obtained.\n");
*ppidl = pidlCommonFavorites;
hr = BindToDesktop(pidlCommonFavorites, ppsfFavorites);
return hr;
+1 -8
View File
@@ -3252,16 +3252,9 @@ LRESULT CShellBrowser::OnBackspace(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOO
return 0;
}
HRESULT WINAPI SHOpenNewFrame(LPITEMIDLIST pidl, IUnknown *paramC, long param10, DWORD dwFlags);
LRESULT CShellBrowser::OnIsThisLegal(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL &bHandled)
{
LPITEMIDLIST desktopPIDL;
HRESULT hResult = SHGetFolderLocation(NULL, CSIDL_DESKTOP, NULL, 0, &desktopPIDL);
if (SUCCEEDED(hResult))
{
hResult = SHOpenNewFrame(desktopPIDL, NULL, -1, 1);
}
ShellExecute(m_hWnd, NULL, L"https://reactos.org/user-faq", NULL, NULL, SW_SHOWNORMAL);
return 0;
}