From 251e9afb188f58857d7ea03d8d94fd57d2d068d3 Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Thu, 24 Nov 2011 13:12:56 +0000 Subject: [PATCH] [EXPLORER] - Fix incorrect virtual function override of Entry::do_context_menu. CID 1630 svn path=/trunk/; revision=54493 --- reactos/base/shell/explorer/shell/shellfs.cpp | 4 ++-- reactos/base/shell/explorer/shell/shellfs.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/base/shell/explorer/shell/shellfs.cpp b/reactos/base/shell/explorer/shell/shellfs.cpp index fbcbdad2708..87ea0a128b7 100644 --- a/reactos/base/shell/explorer/shell/shellfs.cpp +++ b/reactos/base/shell/explorer/shell/shellfs.cpp @@ -221,14 +221,14 @@ BOOL ShellEntry::launch_entry(HWND hwnd, UINT nCmdShow) } -HRESULT ShellEntry::do_context_menu(HWND hwnd, LPPOINT pptScreen, CtxMenuInterfaces& cm_ifs) +HRESULT ShellEntry::do_context_menu(HWND hwnd, const POINT& pptScreen, CtxMenuInterfaces& cm_ifs) { ShellDirectory* dir = static_cast(_up); ShellFolder folder = dir? dir->_folder: GetDesktopFolder(); LPCITEMIDLIST pidl = _pidl; - return ShellFolderContextMenu(folder, hwnd, 1, &pidl, pptScreen->x, pptScreen->y, cm_ifs); + return ShellFolderContextMenu(folder, hwnd, 1, &pidl, pptScreen.x, pptScreen.y, cm_ifs); } diff --git a/reactos/base/shell/explorer/shell/shellfs.h b/reactos/base/shell/explorer/shell/shellfs.h index 66e0802b8f7..91400135a04 100644 --- a/reactos/base/shell/explorer/shell/shellfs.h +++ b/reactos/base/shell/explorer/shell/shellfs.h @@ -36,7 +36,7 @@ struct ShellEntry : public Entry virtual ShellPath create_absolute_pidl() const; virtual HRESULT GetUIObjectOf(HWND hWnd, REFIID riid, LPVOID* ppvOut); virtual BOOL launch_entry(HWND hwnd, UINT nCmdShow=SW_SHOWNORMAL); - virtual HRESULT do_context_menu(HWND hwnd, LPPOINT pptScreen, CtxMenuInterfaces& cm_ifs); + virtual HRESULT do_context_menu(HWND hwnd, const POINT& pptScreen, CtxMenuInterfaces& cm_ifs); virtual ShellFolder get_shell_folder() const; IShellFolder* get_parent_folder() const;