Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
68e0d64d
Commit
68e0d64d
authored
Apr 28, 2000
by
Guy L. Albertelli
Committed by
Alexandre Julliard
Apr 28, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Correct check for minimum buffer length.
- Correct cases where ShowWindow is done/not done.
parent
2fb5dee6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
finddlg32.c
dlls/commdlg/finddlg32.c
+10
-9
No files found.
dlls/commdlg/finddlg32.c
View file @
68e0d64d
...
...
@@ -207,13 +207,14 @@ static BOOL CALLBACK COMDLG32_FindReplaceDlgProc(HWND hDlgWnd, UINT iMsg, WPARAM
SendDlgItemMessageA
(
hDlgWnd
,
chx1
,
BM_SETCHECK
,
pdata
->
fr
.
Flags
&
FR_WHOLEWORD
?
BST_CHECKED
:
0
,
0
);
/* We did the init here, now call the hook if requested */
if
((
pdata
->
fr
.
Flags
&
FR_ENABLEHOOK
)
&&
pdata
->
fr
.
lpfnHook
(
hDlgWnd
,
iMsg
,
wParam
,
pdata
->
fr
.
lCustData
))
{
ShowWindow
(
hDlgWnd
,
SW_SHOWNORMAL
);
UpdateWindow
(
hDlgWnd
);
}
/* else the caller is responsible for showing */
/* We do not do ShowWindow if hook exists and is FALSE */
/* per MSDN Article Q96135 */
if
((
pdata
->
fr
.
Flags
&
FR_ENABLEHOOK
)
&&
!
pdata
->
fr
.
lpfnHook
(
hDlgWnd
,
iMsg
,
wParam
,
pdata
->
fr
.
lCustData
))
return
TRUE
;
ShowWindow
(
hDlgWnd
,
SW_SHOWNORMAL
);
UpdateWindow
(
hDlgWnd
);
return
TRUE
;
}
...
...
@@ -296,8 +297,8 @@ static BOOL COMDLG32_FR_CheckPartial(
return
FALSE
;
}
if
((
pfr
->
wFindWhatLen
<
80
||
!
pfr
->
lpstrFindWhat
)
||
(
Replace
&&
(
pfr
->
wReplaceWithLen
<
80
||
!
pfr
->
lpstrReplaceWith
)))
if
((
pfr
->
wFindWhatLen
<
1
||
!
pfr
->
lpstrFindWhat
)
||
(
Replace
&&
(
pfr
->
wReplaceWithLen
<
1
||
!
pfr
->
lpstrReplaceWith
)))
{
COMDLG32_SetCommDlgExtendedError
(
FRERR_BUFFERLENGTHZERO
);
return
FALSE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment