Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2d27d829
Commit
2d27d829
authored
Nov 05, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32: Remove superfluous casts of void pointers to other pointer types.
parent
5f55f154
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
finddlg32.c
dlls/comdlg32/finddlg32.c
+7
-8
No files found.
dlls/comdlg32/finddlg32.c
View file @
2d27d829
...
...
@@ -417,7 +417,7 @@ static HWND COMDLG32_FR_DoFindReplace(
goto
cleanup
;
}
if
((
rcs
=
(
LPDLGTEMPLATEW
)
LockResource
(
loadrc
))
==
NULL
)
if
((
rcs
=
LockResource
(
loadrc
))
==
NULL
)
{
error
=
CDERR_LOCKRESFAILURE
;
goto
cleanup
;
...
...
@@ -453,7 +453,7 @@ HWND WINAPI FindTextA(
if
(
!
COMDLG32_FR_CheckPartial
(
pfr
,
FALSE
))
return
0
;
if
((
pdata
=
(
COMDLG32_FR_Data
*
)
COMDLG32_AllocMem
(
sizeof
(
COMDLG32_FR_Data
)))
==
NULL
)
if
((
pdata
=
COMDLG32_AllocMem
(
sizeof
(
COMDLG32_FR_Data
)))
==
NULL
)
return
0
;
/* Error has been set */
pdata
->
user_fr
.
fra
=
pfr
;
...
...
@@ -476,7 +476,7 @@ HWND WINAPI ReplaceTextA(
if
(
!
COMDLG32_FR_CheckPartial
(
pfr
,
TRUE
))
return
0
;
if
((
pdata
=
(
COMDLG32_FR_Data
*
)
COMDLG32_AllocMem
(
sizeof
(
COMDLG32_FR_Data
)))
==
NULL
)
if
((
pdata
=
COMDLG32_AllocMem
(
sizeof
(
COMDLG32_FR_Data
)))
==
NULL
)
return
0
;
/* Error has been set */
pdata
->
user_fr
.
fra
=
pfr
;
...
...
@@ -507,8 +507,8 @@ HWND WINAPI FindTextW(
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
pfr
->
lpstrFindWhat
,
pfr
->
wFindWhatLen
,
NULL
,
0
,
NULL
,
NULL
);
if
((
pdata
=
(
COMDLG32_FR_Data
*
)
COMDLG32_AllocMem
(
sizeof
(
COMDLG32_FR_Data
)
+
len
))
==
NULL
)
return
0
;
/* Error has been set */
if
((
pdata
=
COMDLG32_AllocMem
(
sizeof
(
COMDLG32_FR_Data
)
+
len
))
==
NULL
)
return
0
;
/* Error has been set */
pdata
->
user_fr
.
frw
=
pfr
;
pdata
->
fr
=
*
(
LPFINDREPLACEA
)
pfr
;
/* FINDREPLACEx have same size */
...
...
@@ -543,9 +543,8 @@ HWND WINAPI ReplaceTextW(
NULL
,
0
,
NULL
,
NULL
);
len2
=
WideCharToMultiByte
(
CP_ACP
,
0
,
pfr
->
lpstrReplaceWith
,
pfr
->
wReplaceWithLen
,
NULL
,
0
,
NULL
,
NULL
);
if
((
pdata
=
(
COMDLG32_FR_Data
*
)
COMDLG32_AllocMem
(
sizeof
(
COMDLG32_FR_Data
)
+
len1
+
len2
))
==
NULL
)
return
0
;
/* Error has been set */
if
((
pdata
=
COMDLG32_AllocMem
(
sizeof
(
COMDLG32_FR_Data
)
+
len1
+
len2
))
==
NULL
)
return
0
;
/* Error has been set */
pdata
->
user_fr
.
frw
=
pfr
;
pdata
->
fr
=
*
(
LPFINDREPLACEA
)
pfr
;
/* FINDREPLACEx have same size */
...
...
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