mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
[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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user