mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-28 21:02:59 +08:00
+ fix: bug in getting string length from dialog box readout
This commit is contained in:
parent
6d42cfdc93
commit
da36884310
@ -4946,7 +4946,7 @@ int __fastcall EditGetFindStrg(HWND hwnd, LPCEDITFINDREPLACE lpefr, LPSTR szFind
|
||||
if (lpefr->bTransformBS)
|
||||
TransformBackslashes(szFind, (lpefr->fuFlags & SCFIND_REGEXP), Encoding_SciGetCodePage(hwnd));
|
||||
|
||||
int slen = StringCchLenA(szFind, COUNTOF(szFind));
|
||||
int slen = StringCchLenA(szFind, FNDRPL_BUFFER);
|
||||
|
||||
if (slen == 0)
|
||||
InfoBox(0, L"MsgNotFound", IDS_NOTFOUND);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user