[BROWSEUI]
authorDavid Quintana <gigaherz@gmail.com>
Wed, 29 Oct 2014 12:32:46 +0000 (12:32 +0000)
committerDavid Quintana <gigaherz@gmail.com>
Wed, 29 Oct 2014 12:32:46 +0000 (12:32 +0000)
* 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

dll/win32/browseui/internettoolbar.cpp
dll/win32/browseui/shellbrowser.cpp

index 1f0bfda..1ab30a7 100644 (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;
index 1dae2f0..63f3271 100644 (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;
 }