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
5a5a9bcd
Commit
5a5a9bcd
authored
Jan 16, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Jan 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Remove unneeded casts.
parent
8caed63e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
editor.c
dlls/riched20/editor.c
+7
-7
richole.c
dlls/riched20/richole.c
+1
-1
style.c
dlls/riched20/style.c
+3
-3
No files found.
dlls/riched20/editor.c
View file @
5a5a9bcd
...
...
@@ -628,9 +628,9 @@ static LRESULT ME_StreamIn(ME_TextEditor *editor, DWORD format, EDITSTREAM *stre
int
nEventMask
=
editor
->
nEventMask
;
ME_InStream
inStream
;
TRACE
(
"stream==%p hWnd==%p format==0x%X
\n
"
,
stream
,
editor
->
hWnd
,
(
UINT
)
format
);
TRACE
(
"stream==%p hWnd==%p format==0x%X
\n
"
,
stream
,
editor
->
hWnd
,
format
);
editor
->
nEventMask
=
0
;
ME_GetSelection
(
editor
,
&
from
,
&
to
);
if
((
format
&
SFF_SELECTION
)
&&
(
editor
->
mode
&
TM_RICHTEXT
))
{
style
=
ME_GetSelectionInsertStyle
(
editor
);
...
...
@@ -1140,7 +1140,7 @@ static BOOL ME_ShowContextMenu(ME_TextEditor *editor, int x, int y)
int
seltype
=
0
;
if
(
!
editor
->
lpOleCallback
)
return
FALSE
;
ME_GetSelection
(
editor
,
(
int
*
)
&
selrange
.
cpMin
,
(
int
*
)
&
selrange
.
cpMax
);
ME_GetSelection
(
editor
,
&
selrange
.
cpMin
,
&
selrange
.
cpMax
);
if
(
selrange
.
cpMin
==
selrange
.
cpMax
)
seltype
|=
SEL_EMPTY
;
else
...
...
@@ -1561,7 +1561,7 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam,
case
EM_EXGETSEL
:
{
CHARRANGE
*
pRange
=
(
CHARRANGE
*
)
lParam
;
ME_GetSelection
(
editor
,
(
int
*
)
&
pRange
->
cpMin
,
(
int
*
)
&
pRange
->
cpMax
);
ME_GetSelection
(
editor
,
&
pRange
->
cpMin
,
&
pRange
->
cpMax
);
TRACE
(
"EM_EXGETSEL = (%d,%d)
\n
"
,
pRange
->
cpMin
,
pRange
->
cpMax
);
return
0
;
}
...
...
@@ -2034,11 +2034,11 @@ static LRESULT RichEditWndProc_common(HWND hWnd, UINT msg, WPARAM wParam,
LPDATAOBJECT
dataObj
=
NULL
;
CHARRANGE
range
;
HRESULT
hr
=
S_OK
;
if
(
editor
->
cPasswordMask
)
return
0
;
/* Copying or Cutting masked text isn't allowed */
ME_GetSelection
(
editor
,
(
int
*
)
&
range
.
cpMin
,
(
int
*
)
&
range
.
cpMax
);
ME_GetSelection
(
editor
,
&
range
.
cpMin
,
&
range
.
cpMax
);
if
(
editor
->
lpOleCallback
)
hr
=
IRichEditOleCallback_GetClipboardData
(
editor
->
lpOleCallback
,
&
range
,
RECO_COPY
,
&
dataObj
);
if
(
FAILED
(
hr
)
||
!
dataObj
)
...
...
dlls/riched20/richole.c
View file @
5a5a9bcd
...
...
@@ -162,7 +162,7 @@ IRichEditOle_fnGetClipboardData(IRichEditOle *me, CHARRANGE *lpchrg,
if
(
!
lplpdataobj
)
return
E_INVALIDARG
;
if
(
!
lpchrg
)
{
ME_GetSelection
(
This
->
editor
,
(
int
*
)
&
tmpchrg
.
cpMin
,
(
int
*
)
&
tmpchrg
.
cpMax
);
ME_GetSelection
(
This
->
editor
,
&
tmpchrg
.
cpMin
,
&
tmpchrg
.
cpMax
);
lpchrg
=
&
tmpchrg
;
}
return
ME_GetDataObject
(
This
->
editor
,
lpchrg
,
lplpdataobj
);
...
...
dlls/riched20/style.c
View file @
5a5a9bcd
...
...
@@ -262,12 +262,12 @@ void ME_DumpStyleToBuf(CHARFORMAT2W *pFmt, char buf[2048])
p
+=
sprintf
(
p
,
"N/A"
);
if
(
pFmt
->
dwMask
&
CFM_SIZE
)
p
+=
sprintf
(
p
,
"
\n
Font size: %d
\n
"
,
(
int
)
pFmt
->
yHeight
);
p
+=
sprintf
(
p
,
"
\n
Font size: %d
\n
"
,
pFmt
->
yHeight
);
else
p
+=
sprintf
(
p
,
"
\n
Font size: N/A
\n
"
);
if
(
pFmt
->
dwMask
&
CFM_OFFSET
)
p
+=
sprintf
(
p
,
"Char offset: %d
\n
"
,
(
int
)
pFmt
->
yOffset
);
p
+=
sprintf
(
p
,
"Char offset: %d
\n
"
,
pFmt
->
yOffset
);
else
p
+=
sprintf
(
p
,
"Char offset: N/A
\n
"
);
...
...
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