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
495792e2
Commit
495792e2
authored
Dec 19, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/varformat: Fix day string representation format output.
parent
5b985bcb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
varformat.c
dlls/oleaut32/tests/varformat.c
+3
-1
varformat.c
dlls/oleaut32/varformat.c
+2
-2
No files found.
dlls/oleaut32/tests/varformat.c
View file @
495792e2
...
@@ -212,7 +212,9 @@ static const FMTDATERES VarFormat_date_results[] =
...
@@ -212,7 +212,9 @@ static const FMTDATERES VarFormat_date_results[] =
{
2
.
525
,
"hh :mm:mm"
,
"12 :36:01"
},
{
2
.
525
,
"hh :mm:mm"
,
"12 :36:01"
},
{
2
.
525
,
"dd :mm:mm"
,
"01 :01:01"
},
{
2
.
525
,
"dd :mm:mm"
,
"01 :01:01"
},
{
2
.
525
,
"dd :mm:nn"
,
"01 :01:36"
},
{
2
.
525
,
"dd :mm:nn"
,
"01 :01:36"
},
{
2
.
725
,
"hh:nn:ss A/P"
,
"05:24:00 P"
}
{
2
.
725
,
"hh:nn:ss A/P"
,
"05:24:00 P"
},
{
40531
.
0
,
"dddd"
,
"Sunday"
},
{
40531
.
0
,
"ddd"
,
"Sun"
}
};
};
#define VNUMFMT(vt,v) \
#define VNUMFMT(vt,v) \
...
...
dlls/oleaut32/varformat.c
View file @
495792e2
...
@@ -1725,14 +1725,14 @@ static HRESULT VARIANT_FormatDate(LPVARIANT pVarIn, LPOLESTR lpszFormat,
...
@@ -1725,14 +1725,14 @@ static HRESULT VARIANT_FormatDate(LPVARIANT pVarIn, LPOLESTR lpszFormat,
case
FMT_DATE_DAY_SHORT
:
case
FMT_DATE_DAY_SHORT
:
/* FIXME: VARIANT_CALENDAR HIJRI should cause Hijri output */
/* FIXME: VARIANT_CALENDAR HIJRI should cause Hijri output */
TRACE
(
"short day
\n
"
);
TRACE
(
"short day
\n
"
);
localeValue
=
LOCALE_SABBREVDAYNAME1
+
udate
.
st
.
wMonth
-
1
;
localeValue
=
LOCALE_SABBREVDAYNAME1
+
(
udate
.
st
.
wDayOfWeek
+
6
)
%
7
;
defaultChar
=
'?'
;
defaultChar
=
'?'
;
break
;
break
;
case
FMT_DATE_DAY_LONG
:
case
FMT_DATE_DAY_LONG
:
/* FIXME: VARIANT_CALENDAR HIJRI should cause Hijri output */
/* FIXME: VARIANT_CALENDAR HIJRI should cause Hijri output */
TRACE
(
"long day
\n
"
);
TRACE
(
"long day
\n
"
);
localeValue
=
LOCALE_SDAYNAME1
+
udate
.
st
.
wMonth
-
1
;
localeValue
=
LOCALE_SDAYNAME1
+
(
udate
.
st
.
wDayOfWeek
+
6
)
%
7
;
defaultChar
=
'?'
;
defaultChar
=
'?'
;
break
;
break
;
...
...
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