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
fed00cb8
Commit
fed00cb8
authored
Mar 15, 2007
by
Kanit Therdsteerasukdi
Committed by
Alexandre Julliard
Mar 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32: datetime: Return 1 in DTM_SETFORMAT when successful.
parent
cecd205f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
datetime.c
dlls/comctl32/datetime.c
+1
-1
datetime.c
dlls/comctl32/tests/datetime.c
+5
-7
No files found.
dlls/comctl32/datetime.c
View file @
fed00cb8
...
...
@@ -279,7 +279,7 @@ DATETIME_SetFormatW (DATETIME_INFO *infoPtr, LPCWSTR lpszFormat)
DATETIME_UseFormat
(
infoPtr
,
lpszFormat
);
InvalidateRect
(
infoPtr
->
hwndSelf
,
NULL
,
TRUE
);
return
infoPtr
->
nrFields
;
return
1
;
}
...
...
dlls/comctl32/tests/datetime.c
View file @
fed00cb8
...
...
@@ -190,14 +190,12 @@ static void test_dtm_set_format(HWND hWndDateTime)
{
LRESULT
r
;
todo_wine
{
r
=
SendMessage
(
hWndDateTime
,
DTM_SETFORMAT
,
0
,
(
LPARAM
)
NULL
);
expect
(
1
,
r
);
r
=
SendMessage
(
hWndDateTime
,
DTM_SETFORMAT
,
0
,
(
LPARAM
)
NULL
);
expect
(
1
,
r
);
r
=
SendMessage
(
hWndDateTime
,
DTM_SETFORMAT
,
0
,
(
LPARAM
)
"'Today is: 'hh':'m':'s dddd MMM dd', 'yyyy"
);
expect
(
1
,
r
);
}
r
=
SendMessage
(
hWndDateTime
,
DTM_SETFORMAT
,
0
,
(
LPARAM
)
"'Today is: 'hh':'m':'s dddd MMM dd', 'yyyy"
);
expect
(
1
,
r
);
ok_sequence
(
sequences
,
DATETIME_SEQ_INDEX
,
test_dtm_set_format_seq
,
"test_dtm_set_format"
,
FALSE
);
flush_sequences
(
sequences
,
NUM_MSG_SEQUENCES
);
...
...
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