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
cdaba885
Commit
cdaba885
authored
Dec 27, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Remove some explicit LPARAM/WPARAM casts.
parent
3fae3f36
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wordpad.c
programs/wordpad/wordpad.c
+4
-4
No files found.
programs/wordpad/wordpad.c
View file @
cdaba885
...
...
@@ -1241,7 +1241,7 @@ static LRESULT handle_findmsg(LPFINDREPLACEW pFr)
if
(
pFr
->
Flags
&
FR_WHOLEWORD
)
flags
|=
FR_WHOLEWORD
;
ret
=
SendMessageW
(
hEditorWnd
,
EM_FINDTEXTW
,
(
WPARAM
)
flags
,
(
LPARAM
)
&
ft
);
ret
=
SendMessageW
(
hEditorWnd
,
EM_FINDTEXTW
,
flags
,
(
LPARAM
)
&
ft
);
if
(
ret
==
-
1
)
{
...
...
@@ -1250,7 +1250,7 @@ static LRESULT handle_findmsg(LPFINDREPLACEW pFr)
ft
.
chrg
.
cpMin
=
cr
.
cpMin
=
0
;
ft
.
chrg
.
cpMax
=
cr
.
cpMax
=
startPos
;
ret
=
SendMessageW
(
hEditorWnd
,
EM_FINDTEXTW
,
(
WPARAM
)
flags
,
(
LPARAM
)
&
ft
);
ret
=
SendMessageW
(
hEditorWnd
,
EM_FINDTEXTW
,
flags
,
(
LPARAM
)
&
ft
);
}
}
...
...
@@ -1263,7 +1263,7 @@ static LRESULT handle_findmsg(LPFINDREPLACEW pFr)
{
end
=
ret
+
lstrlenW
(
pFr
->
lpstrFindWhat
);
cr
.
cpMin
=
end
;
SendMessageW
(
hEditorWnd
,
EM_SETSEL
,
(
WPARAM
)
ret
,
(
LPARAM
)
end
);
SendMessageW
(
hEditorWnd
,
EM_SETSEL
,
ret
,
end
);
SendMessageW
(
hEditorWnd
,
EM_SCROLLCARET
,
0
,
0
);
if
(
pFr
->
Flags
&
FR_REPLACE
||
pFr
->
Flags
&
FR_REPLACEALL
)
...
...
@@ -1737,7 +1737,7 @@ static int context_menu(LPARAM lParam)
int
from
=
0
,
to
=
0
;
POINTL
pt
;
SendMessageW
(
hEditorWnd
,
EM_GETSEL
,
(
WPARAM
)
&
from
,
(
LPARAM
)
&
to
);
SendMessageW
(
hEditorWnd
,
EM_POSFROMCHAR
,
(
WPARAM
)
&
pt
,
(
LPARAM
)
to
);
SendMessageW
(
hEditorWnd
,
EM_POSFROMCHAR
,
(
WPARAM
)
&
pt
,
to
);
ClientToScreen
(
hEditorWnd
,
(
POINT
*
)
&
pt
);
x
=
pt
.
x
;
y
=
pt
.
y
;
...
...
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