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
7dfb21a9
Commit
7dfb21a9
authored
Aug 10, 2016
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Fix parameters conversion in wcsftime function.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4f71f429
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
time.c
dlls/msvcrt/time.c
+3
-4
No files found.
dlls/msvcrt/time.c
View file @
7dfb21a9
...
...
@@ -1254,15 +1254,14 @@ MSVCRT_size_t CDECL MSVCRT_wcsftime( MSVCRT_wchar_t *str, MSVCRT_size_t max,
TRACE
(
"%p %ld %s %p
\n
"
,
str
,
max
,
debugstr_w
(
format
),
mstm
);
len
=
WideCharToMultiByte
(
CP_UNIXCP
,
0
,
format
,
-
1
,
NULL
,
0
,
NULL
,
NULL
)
;
len
=
MSVCRT_wcstombs
(
NULL
,
format
,
0
)
+
1
;
if
(
!
(
fmt
=
MSVCRT_malloc
(
len
)))
return
0
;
WideCharToMultiByte
(
CP_UNIXCP
,
0
,
format
,
-
1
,
fmt
,
len
,
NULL
,
NULL
);
MSVCRT_wcstombs
(
fmt
,
format
,
len
);
if
((
s
=
MSVCRT_malloc
(
max
*
4
)))
{
if
(
!
MSVCRT_strftime
(
s
,
max
*
4
,
fmt
,
mstm
))
s
[
0
]
=
0
;
len
=
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
s
,
-
1
,
str
,
max
);
if
(
len
)
len
--
;
len
=
MSVCRT_mbstowcs
(
str
,
s
,
max
);
MSVCRT_free
(
s
);
}
else
len
=
0
;
...
...
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