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
998472d1
Commit
998472d1
authored
Jan 09, 2015
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp: Fix format parsing in time_put_wchar_put_format.
parent
35a887ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
locale.c
dlls/msvcp60/locale.c
+4
-3
locale.c
dlls/msvcp90/locale.c
+4
-3
No files found.
dlls/msvcp60/locale.c
View file @
998472d1
...
...
@@ -7589,15 +7589,16 @@ ostreambuf_iterator_wchar* __thiscall time_put_wchar_put_format(const time_put *
ostreambuf_iterator_wchar_put
(
&
dest
,
*
pat
++
);
}
else
if
(
++
pat
==
pat_end
)
{
ostreambuf_iterator_wchar_put
(
&
dest
,
percent
);
}
else
if
(
!
_Wcrtomb
(
c
,
*
pat
,
NULL
,
&
this
->
cvt
)
||
(
*
c
==
'#'
&&
pat
+
1
==
pat_end
))
{
}
else
if
(
_Wcrtomb
(
c
,
*
pat
,
NULL
,
&
this
->
cvt
)
!=
1
||
(
*
c
==
'#'
&&
pat
+
1
==
pat_end
))
{
ostreambuf_iterator_wchar_put
(
&
dest
,
percent
);
ostreambuf_iterator_wchar_put
(
&
dest
,
*
pat
++
);
}
else
{
pat
++
;
if
(
*
c
==
'#'
)
{
if
(
!
_Wcrtomb
(
c
,
*
pat
++
,
NULL
,
&
this
->
cvt
)
)
{
if
(
_Wcrtomb
(
c
,
*
pat
++
,
NULL
,
&
this
->
cvt
)
!=
1
)
{
ostreambuf_iterator_wchar_put
(
&
dest
,
percent
);
ostreambuf_iterator_wchar_put
(
&
dest
,
*
(
pat
-
2
));
ostreambuf_iterator_wchar_put
(
&
dest
,
*
(
pat
-
1
));
ostreambuf_iterator_wchar_put
(
&
dest
,
*
pat
);
}
else
{
time_put_wchar_put
(
this
,
&
dest
,
dest
,
base
,
t
,
*
c
,
'#'
);
}
...
...
dlls/msvcp90/locale.c
View file @
998472d1
...
...
@@ -9249,15 +9249,16 @@ ostreambuf_iterator_wchar* __thiscall time_put_wchar_put_format(const time_put *
ostreambuf_iterator_wchar_put
(
&
dest
,
*
pat
++
);
}
else
if
(
++
pat
==
pat_end
)
{
ostreambuf_iterator_wchar_put
(
&
dest
,
percent
);
}
else
if
(
!
_Wcrtomb
(
c
,
*
pat
,
NULL
,
&
this
->
cvt
)
||
(
*
c
==
'#'
&&
pat
+
1
==
pat_end
))
{
}
else
if
(
_Wcrtomb
(
c
,
*
pat
,
NULL
,
&
this
->
cvt
)
!=
1
||
(
*
c
==
'#'
&&
pat
+
1
==
pat_end
))
{
ostreambuf_iterator_wchar_put
(
&
dest
,
percent
);
ostreambuf_iterator_wchar_put
(
&
dest
,
*
pat
++
);
}
else
{
pat
++
;
if
(
*
c
==
'#'
)
{
if
(
!
_Wcrtomb
(
c
,
*
pat
++
,
NULL
,
&
this
->
cvt
)
)
{
if
(
_Wcrtomb
(
c
,
*
pat
++
,
NULL
,
&
this
->
cvt
)
!=
1
)
{
ostreambuf_iterator_wchar_put
(
&
dest
,
percent
);
ostreambuf_iterator_wchar_put
(
&
dest
,
*
(
pat
-
2
));
ostreambuf_iterator_wchar_put
(
&
dest
,
*
(
pat
-
1
));
ostreambuf_iterator_wchar_put
(
&
dest
,
*
pat
);
}
else
{
time_put_wchar_put
(
this
,
&
dest
,
dest
,
base
,
fill
,
t
,
*
c
,
'#'
);
}
...
...
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