[SHELLFIND] Change parameter from array reference to pointer
authorBrock Mammen <brockmammen@gmail.com>
Tue, 27 Aug 2019 13:17:12 +0000 (08:17 -0500)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Sun, 15 Sep 2019 16:46:36 +0000 (19:46 +0300)
dll/win32/browseui/shellfind/CSearchBar.cpp
dll/win32/browseui/shellfind/CSearchBar.h

index bcb7016..b33f158 100644 (file)
@@ -206,10 +206,10 @@ LRESULT CSearchBar::OnStopButtonClicked(WORD wNotifyCode, WORD wID, HWND hWndCtl
     return TRUE;
 }
 
-BOOL CSearchBar::GetAddressEditBoxPath(WCHAR (&szPath)[MAX_PATH])
+BOOL CSearchBar::GetAddressEditBoxPath(WCHAR *szPath)
 {
     HWND hComboboxEx = GetDlgItem(IDC_SEARCH_COMBOBOX);
-    ::GetWindowTextW(hComboboxEx, szPath, _countof(szPath));
+    ::GetWindowTextW(hComboboxEx, szPath, MAX_PATH);
     INT iSelectedIndex = SendMessageW(hComboboxEx, CB_GETCURSEL, 0, 0);
     if (iSelectedIndex != CB_ERR)
     {
index a885d08..7b08a3a 100644 (file)
@@ -32,7 +32,7 @@ private:
     BOOL m_bVisible;
 
     HRESULT GetSearchResultsFolder(IShellBrowser **ppShellBrowser, HWND *pHwnd, IShellFolder **ppShellFolder);
-    BOOL GetAddressEditBoxPath(WCHAR (&szPath)[MAX_PATH]);
+    BOOL GetAddressEditBoxPath(WCHAR *szPath);
     void SetSearchInProgress(BOOL bInProgress);
     HRESULT ExecuteCommand(CComPtr<IContextMenu>& menu, UINT nCmd);
     HRESULT TrySubscribeToSearchEvents();