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
dc37b66d
Commit
dc37b66d
authored
May 04, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Reimplement GetTimeFormatA().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fc26407e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
3 deletions
+31
-3
Makefile.in
dlls/kernel32/Makefile.in
+0
-1
kernel32.spec
dlls/kernel32/kernel32.spec
+1
-1
lcformat.c
dlls/kernel32/lcformat.c
+0
-0
kernelbase.spec
dlls/kernelbase/kernelbase.spec
+1
-1
locale.c
dlls/kernelbase/locale.c
+29
-0
No files found.
dlls/kernel32/Makefile.in
View file @
dc37b66d
...
@@ -14,7 +14,6 @@ C_SRCS = \
...
@@ -14,7 +14,6 @@ C_SRCS = \
file.c
\
file.c
\
heap.c
\
heap.c
\
kernel_main.c
\
kernel_main.c
\
lcformat.c
\
locale.c
\
locale.c
\
lzexpand.c
\
lzexpand.c
\
module.c
\
module.c
\
...
...
dlls/kernel32/kernel32.spec
View file @
dc37b66d
...
@@ -869,7 +869,7 @@
...
@@ -869,7 +869,7 @@
@ stdcall -import GetThreadUILanguage()
@ stdcall -import GetThreadUILanguage()
@ stdcall GetTickCount()
@ stdcall GetTickCount()
@ stdcall -ret64 GetTickCount64()
@ stdcall -ret64 GetTickCount64()
@ stdcall GetTimeFormatA(long long ptr str ptr long)
@ stdcall
-import
GetTimeFormatA(long long ptr str ptr long)
@ stdcall -import GetTimeFormatEx(wstr long ptr wstr ptr long)
@ stdcall -import GetTimeFormatEx(wstr long ptr wstr ptr long)
@ stdcall -import GetTimeFormatW(long long ptr wstr ptr long)
@ stdcall -import GetTimeFormatW(long long ptr wstr ptr long)
@ stdcall -import GetTimeZoneInformation(ptr)
@ stdcall -import GetTimeZoneInformation(ptr)
...
...
dlls/kernel32/lcformat.c
deleted
100644 → 0
View file @
fc26407e
This diff is collapsed.
Click to expand it.
dlls/kernelbase/kernelbase.spec
View file @
dc37b66d
...
@@ -755,7 +755,7 @@
...
@@ -755,7 +755,7 @@
@ stdcall GetThreadUILanguage()
@ stdcall GetThreadUILanguage()
@ stdcall GetTickCount()
@ stdcall GetTickCount()
@ stdcall -ret64 GetTickCount64()
@ stdcall -ret64 GetTickCount64()
@ stdcall GetTimeFormatA(long long ptr str ptr long)
kernel32.GetTimeFormatA
@ stdcall GetTimeFormatA(long long ptr str ptr long)
@ stdcall GetTimeFormatEx(wstr long ptr wstr ptr long)
@ stdcall GetTimeFormatEx(wstr long ptr wstr ptr long)
@ stdcall GetTimeFormatW(long long ptr wstr ptr long)
@ stdcall GetTimeFormatW(long long ptr wstr ptr long)
@ stdcall GetTimeZoneInformation(ptr)
@ stdcall GetTimeZoneInformation(ptr)
...
...
dlls/kernelbase/locale.c
View file @
dc37b66d
...
@@ -7226,6 +7226,35 @@ int WINAPI GetDateFormatEx( const WCHAR *name, DWORD flags, const SYSTEMTIME *sy
...
@@ -7226,6 +7226,35 @@ int WINAPI GetDateFormatEx( const WCHAR *name, DWORD flags, const SYSTEMTIME *sy
}
}
/******************************************************************************
* GetTimeFormatA (kernelbase.@)
*/
int
WINAPI
GetTimeFormatA
(
LCID
lcid
,
DWORD
flags
,
const
SYSTEMTIME
*
time
,
const
char
*
format
,
char
*
buffer
,
int
len
)
{
UINT
cp
=
get_lcid_codepage
(
lcid
,
flags
);
WCHAR
formatW
[
128
],
output
[
128
];
int
ret
;
TRACE
(
"(0x%04lx,0x%08lx,%p,%s,%p,%d)
\n
"
,
lcid
,
flags
,
time
,
debugstr_a
(
format
),
buffer
,
len
);
if
(
len
<
0
||
(
len
&&
!
buffer
))
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
0
;
}
if
(
format
)
{
MultiByteToWideChar
(
cp
,
0
,
format
,
-
1
,
formatW
,
ARRAY_SIZE
(
formatW
)
);
ret
=
GetTimeFormatW
(
lcid
,
flags
,
time
,
formatW
,
output
,
ARRAY_SIZE
(
output
)
);
}
else
ret
=
GetTimeFormatW
(
lcid
,
flags
,
time
,
NULL
,
output
,
ARRAY_SIZE
(
output
)
);
if
(
ret
)
ret
=
WideCharToMultiByte
(
cp
,
0
,
output
,
-
1
,
buffer
,
len
,
0
,
0
);
return
ret
;
}
/***********************************************************************
/***********************************************************************
* GetTimeFormatW (kernelbase.@)
* GetTimeFormatW (kernelbase.@)
*/
*/
...
...
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