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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
finddlg32.c
dlls/comdlg32/finddlg32.c
+5
-6
No files found.
dlls/comdlg32/finddlg32.c
View file @
2d27d829
...
@@ -417,7 +417,7 @@ static HWND COMDLG32_FR_DoFindReplace(
...
@@ -417,7 +417,7 @@ static HWND COMDLG32_FR_DoFindReplace(
goto
cleanup
;
goto
cleanup
;
}
}
if
((
rcs
=
(
LPDLGTEMPLATEW
)
LockResource
(
loadrc
))
==
NULL
)
if
((
rcs
=
LockResource
(
loadrc
))
==
NULL
)
{
{
error
=
CDERR_LOCKRESFAILURE
;
error
=
CDERR_LOCKRESFAILURE
;
goto
cleanup
;
goto
cleanup
;
...
@@ -453,7 +453,7 @@ HWND WINAPI FindTextA(
...
@@ -453,7 +453,7 @@ HWND WINAPI FindTextA(
if
(
!
COMDLG32_FR_CheckPartial
(
pfr
,
FALSE
))
if
(
!
COMDLG32_FR_CheckPartial
(
pfr
,
FALSE
))
return
0
;
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 */
return
0
;
/* Error has been set */
pdata
->
user_fr
.
fra
=
pfr
;
pdata
->
user_fr
.
fra
=
pfr
;
...
@@ -476,7 +476,7 @@ HWND WINAPI ReplaceTextA(
...
@@ -476,7 +476,7 @@ HWND WINAPI ReplaceTextA(
if
(
!
COMDLG32_FR_CheckPartial
(
pfr
,
TRUE
))
if
(
!
COMDLG32_FR_CheckPartial
(
pfr
,
TRUE
))
return
0
;
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 */
return
0
;
/* Error has been set */
pdata
->
user_fr
.
fra
=
pfr
;
pdata
->
user_fr
.
fra
=
pfr
;
...
@@ -507,7 +507,7 @@ HWND WINAPI FindTextW(
...
@@ -507,7 +507,7 @@ HWND WINAPI FindTextW(
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
pfr
->
lpstrFindWhat
,
pfr
->
wFindWhatLen
,
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
pfr
->
lpstrFindWhat
,
pfr
->
wFindWhatLen
,
NULL
,
0
,
NULL
,
NULL
);
NULL
,
0
,
NULL
,
NULL
);
if
((
pdata
=
(
COMDLG32_FR_Data
*
)
COMDLG32_AllocMem
(
sizeof
(
COMDLG32_FR_Data
)
+
len
))
==
NULL
)
if
((
pdata
=
COMDLG32_AllocMem
(
sizeof
(
COMDLG32_FR_Data
)
+
len
))
==
NULL
)
return
0
;
/* Error has been set */
return
0
;
/* Error has been set */
pdata
->
user_fr
.
frw
=
pfr
;
pdata
->
user_fr
.
frw
=
pfr
;
...
@@ -543,8 +543,7 @@ HWND WINAPI ReplaceTextW(
...
@@ -543,8 +543,7 @@ HWND WINAPI ReplaceTextW(
NULL
,
0
,
NULL
,
NULL
);
NULL
,
0
,
NULL
,
NULL
);
len2
=
WideCharToMultiByte
(
CP_ACP
,
0
,
pfr
->
lpstrReplaceWith
,
pfr
->
wReplaceWithLen
,
len2
=
WideCharToMultiByte
(
CP_ACP
,
0
,
pfr
->
lpstrReplaceWith
,
pfr
->
wReplaceWithLen
,
NULL
,
0
,
NULL
,
NULL
);
NULL
,
0
,
NULL
,
NULL
);
if
((
pdata
=
(
COMDLG32_FR_Data
*
)
COMDLG32_AllocMem
(
sizeof
(
COMDLG32_FR_Data
)
if
((
pdata
=
COMDLG32_AllocMem
(
sizeof
(
COMDLG32_FR_Data
)
+
len1
+
len2
))
==
NULL
)
+
len1
+
len2
))
==
NULL
)
return
0
;
/* Error has been set */
return
0
;
/* Error has been set */
pdata
->
user_fr
.
frw
=
pfr
;
pdata
->
user_fr
.
frw
=
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