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
80d80c66
Commit
80d80c66
authored
Apr 06, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Apr 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Constify some variables.
parent
1b2a2943
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
finddlg16.c
dlls/comdlg32/finddlg16.c
+6
-6
finddlg32.c
dlls/comdlg32/finddlg32.c
+2
-2
No files found.
dlls/comdlg32/finddlg16.c
View file @
80d80c66
...
...
@@ -228,7 +228,7 @@ HWND16 WINAPI ReplaceText16( SEGPTR find )
* FINDDLG_WMInitDialog [internal]
*/
static
LRESULT
FINDDLG_WMInitDialog
(
HWND
hWnd
,
LPARAM
lParam
,
LPDWORD
lpFlags
,
LPSTR
lpstrFindWhat
,
BOOL
fUnicode
)
LP
C
STR
lpstrFindWhat
,
BOOL
fUnicode
)
{
SetWindowLongPtrW
(
hWnd
,
DWLP_USER
,
lParam
);
*
lpFlags
&=
~
(
FR_FINDNEXT
|
FR_REPLACE
|
FR_REPLACEALL
|
FR_DIALOGTERM
);
...
...
@@ -237,7 +237,7 @@ static LRESULT FINDDLG_WMInitDialog(HWND hWnd, LPARAM lParam, LPDWORD lpFlags,
* FindNext (IDOK) button. Only after typing some text, the button should be
* enabled.
*/
if
(
fUnicode
)
SetDlgItemTextW
(
hWnd
,
edt1
,
(
LPWSTR
)
lpstrFindWhat
);
if
(
fUnicode
)
SetDlgItemTextW
(
hWnd
,
edt1
,
(
LP
C
WSTR
)
lpstrFindWhat
);
else
SetDlgItemTextA
(
hWnd
,
edt1
,
lpstrFindWhat
);
CheckRadioButton
(
hWnd
,
rad1
,
rad2
,
(
*
lpFlags
&
FR_DOWN
)
?
rad2
:
rad1
);
if
(
*
lpFlags
&
(
FR_HIDEUPDOWN
|
FR_NOUPDOWN
))
{
...
...
@@ -341,8 +341,8 @@ BOOL16 CALLBACK FindTextDlgProc16(HWND16 hWnd16, UINT16 wMsg, WPARAM16 wParam,
* REPLACEDLG_WMInitDialog [internal]
*/
static
LRESULT
REPLACEDLG_WMInitDialog
(
HWND
hWnd
,
LPARAM
lParam
,
LPDWORD
lpFlags
,
LPSTR
lpstrFindWhat
,
LPSTR
lpstrReplaceWith
,
BOOL
fUnicode
)
LPDWORD
lpFlags
,
LP
C
STR
lpstrFindWhat
,
LP
C
STR
lpstrReplaceWith
,
BOOL
fUnicode
)
{
SetWindowLongPtrW
(
hWnd
,
DWLP_USER
,
lParam
);
*
lpFlags
&=
~
(
FR_FINDNEXT
|
FR_REPLACE
|
FR_REPLACEALL
|
FR_DIALOGTERM
);
...
...
@@ -353,8 +353,8 @@ static LRESULT REPLACEDLG_WMInitDialog(HWND hWnd, LPARAM lParam,
*/
if
(
fUnicode
)
{
SetDlgItemTextW
(
hWnd
,
edt1
,
(
LPWSTR
)
lpstrFindWhat
);
SetDlgItemTextW
(
hWnd
,
edt2
,
(
LPWSTR
)
lpstrReplaceWith
);
SetDlgItemTextW
(
hWnd
,
edt1
,
(
LP
C
WSTR
)
lpstrFindWhat
);
SetDlgItemTextW
(
hWnd
,
edt2
,
(
LP
C
WSTR
)
lpstrReplaceWith
);
}
else
{
SetDlgItemTextA
(
hWnd
,
edt1
,
lpstrFindWhat
);
...
...
dlls/comdlg32/finddlg32.c
View file @
80d80c66
...
...
@@ -299,8 +299,8 @@ static INT_PTR CALLBACK COMDLG32_FindReplaceDlgProc(HWND hDlgWnd, UINT iMsg, WPA
* FALSE: Failure
*/
static
BOOL
COMDLG32_FR_CheckPartial
(
LPFINDREPLACEA
pfr
,
/* [in] Find structure */
BOOL
Replace
/* [in] True if called as replace */
const
FINDREPLACEA
*
pfr
,
/* [in] Find structure */
BOOL
Replace
/* [in] True if called as replace */
)
{
if
(
!
pfr
)
{
...
...
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