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
6f35351f
Commit
6f35351f
authored
Nov 10, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 11, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: EnumTimeFormatsA() doesn't support TIME_NOSECONDS.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
982c3ede
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
lcformat.c
dlls/kernel32/lcformat.c
+6
-0
locale.c
dlls/kernel32/tests/locale.c
+1
-2
No files found.
dlls/kernel32/lcformat.c
View file @
6f35351f
...
...
@@ -1930,6 +1930,12 @@ BOOL WINAPI EnumTimeFormatsA(TIMEFMT_ENUMPROCA proc, LCID lcid, DWORD flags)
{
char
buf
[
256
];
if
(
flags
&
~
LOCALE_USE_CP_ACP
)
{
SetLastError
(
ERROR_INVALID_FLAGS
);
return
FALSE
;
}
if
(
!
proc
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
...
...
dlls/kernel32/tests/locale.c
View file @
6f35351f
...
...
@@ -3520,14 +3520,13 @@ static void test_EnumTimeFormatsW(void)
/* EnumTimeFormatsA doesn't support this flag */
ret
=
EnumTimeFormatsA
(
enum_datetime_procA
,
lcid
,
TIME_NOSECONDS
);
todo_wine
{
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_FLAGS
,
"EnumTimeFormatsA(TIME_NOSECONDS) ret %d, error %d
\n
"
,
ret
,
GetLastError
());
ret
=
EnumTimeFormatsA
(
NULL
,
lcid
,
TIME_NOSECONDS
);
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_FLAGS
,
"EnumTimeFormatsA(TIME_NOSECONDS) ret %d, error %d
\n
"
,
ret
,
GetLastError
());
}
/* And it's not supported by GetLocaleInfoA either */
ret
=
GetLocaleInfoA
(
lcid
,
LOCALE_SSHORTTIME
,
buf
,
sizeof
(
buf
)
/
sizeof
(
buf
[
0
]));
ok
(
!
ret
&&
GetLastError
()
==
ERROR_INVALID_FLAGS
,
"GetLocaleInfoA(LOCALE_SSHORTTIME) ret %d, error %d
\n
"
,
ret
,
...
...
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