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
6cfc5df3
Commit
6cfc5df3
authored
Oct 08, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/ipaddress: Fix IPM_SETFOCUS return value.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6f895715
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
ipaddress.c
dlls/comctl32/ipaddress.c
+6
-5
ipaddress.c
dlls/comctl32/tests/ipaddress.c
+0
-1
No files found.
dlls/comctl32/ipaddress.c
View file @
6cfc5df3
...
...
@@ -387,14 +387,16 @@ static LRESULT IPADDRESS_SetAddress (const IPADDRESS_INFO *infoPtr, DWORD ip_add
}
static
void
IPADDRESS_SetFocusToField
(
const
IPADDRESS_INFO
*
infoPtr
,
INT
index
)
static
LRESULT
IPADDRESS_SetFocusToField
(
const
IPADDRESS_INFO
*
infoPtr
,
INT
index
)
{
TRACE
(
"
(index=%d)
\n
"
,
index
);
TRACE
(
"
%d
\n
"
,
index
);
if
(
index
>
3
||
index
<
0
)
index
=
0
;
SendMessageW
(
infoPtr
->
Part
[
index
].
EditHwnd
,
EM_SETSEL
,
0
,
-
1
);
SetFocus
(
infoPtr
->
Part
[
index
].
EditHwnd
);
return
1
;
}
...
...
@@ -624,9 +626,8 @@ IPADDRESS_WindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case
IPM_SETRANGE
:
return
IPADDRESS_SetRange
(
infoPtr
,
(
int
)
wParam
,
(
WORD
)
lParam
);
case
IPM_SETFOCUS
:
IPADDRESS_SetFocusToField
(
infoPtr
,
(
int
)
wParam
);
break
;
case
IPM_SETFOCUS
:
return
IPADDRESS_SetFocusToField
(
infoPtr
,
(
int
)
wParam
);
case
IPM_ISBLANK
:
return
IPADDRESS_IsBlank
(
infoPtr
);
...
...
dlls/comctl32/tests/ipaddress.c
View file @
6cfc5df3
...
...
@@ -105,7 +105,6 @@ static void test_IPM_SETFOCUS(void)
ok
(
from
==
0
&&
to
==
0
,
"Unexpected selection %u x %u.
\n
"
,
from
,
to
);
ret
=
SendMessageA
(
hwnd
,
IPM_SETFOCUS
,
0
,
0
);
todo_wine
ok
(
ret
,
"Unexpected return value %u.
\n
"
,
ret
);
SendMessageA
(
child_enum
.
fields
[
0
],
EM_GETSEL
,
(
WPARAM
)
&
from
,
(
LPARAM
)
&
to
);
...
...
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