Merge pull request #3731 from RaiKoHoff/Dev_RC

Fix: grepWinNP3 not intended switching "AllSize" settings
This commit is contained in:
Pairi Daiza 2021-10-21 16:23:13 +02:00 committed by GitHub
commit 7af62ff373
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -361,7 +361,7 @@ LRESULT CSearchDlg::DlgFunc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPara
}
wchar_t buf[MAX_PATH] = {0};
if (m_bSizeC && (m_lSize != static_cast<uint64_t>(-1)))
if (m_bSizeC && (m_lSize != static_cast<uint64_t>(0)))
{
swprintf_s(buf, _countof(buf), L"%I64u", m_lSize);
SetDlgItemText(hwndDlg, IDC_SIZEEDIT, buf);

View File

@ -111,7 +111,7 @@ public:
inline void SetWholeWords(bool bSet) { m_bWholeWordsC = true; m_bWholeWords = bSet; }
inline void SetUTF8(bool bSet) { m_bUTF8C = true; m_bUTF8 = bSet; m_bForceBinary = false; }
inline void SetBinary(bool bSet) { m_bUTF8C = true; m_bForceBinary = bSet; m_bUTF8 = false; }
inline void SetSize(uint64_t size, int cmp) { m_bSizeC = true; m_lSize = size; m_sizeCmp = cmp; m_bAllSize = (size == (uint64_t)-1); }
inline void SetSize(uint64_t size, int cmp) { m_bSizeC = true; m_lSize = size; m_sizeCmp = cmp; m_bAllSize = (size == (uint64_t)0); }
inline void SetIncludeSystem(bool bSet) { m_bIncludeSystemC = true; m_bIncludeSystem = bSet; }
inline void SetIncludeHidden(bool bSet) { m_bIncludeHiddenC = true; m_bIncludeHidden = bSet; }
inline void SetIncludeSubfolders(bool bSet) { m_bIncludeSubfoldersC = true; m_bIncludeSubfolders = bSet; }