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
a2d74e5f
Commit
a2d74e5f
authored
Feb 25, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Feb 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fixed VARIANT_FormatDate behavior on dates before year 1600.
parent
30630b4d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
varformat.c
dlls/oleaut32/varformat.c
+1
-1
variant.h
dlls/oleaut32/variant.h
+2
-0
vartype.c
dlls/oleaut32/vartype.c
+1
-1
No files found.
dlls/oleaut32/varformat.c
View file @
a2d74e5f
...
...
@@ -1908,7 +1908,7 @@ static HRESULT VARIANT_FormatDate(LPVARIANT pVarIn, LPOLESTR lpszFormat,
WCHAR
fmt_buff
[
80
];
if
(
!
GetLocaleInfoW
(
lcid
,
dwFmt
,
fmt_buff
,
sizeof
(
fmt_buff
)
/
sizeof
(
WCHAR
))
||
!
GetDateFormatW
(
lcid
,
0
,
&
udate
.
st
,
fmt_buff
,
pBuff
,
!
get_date_format
(
lcid
,
0
,
&
udate
.
st
,
fmt_buff
,
pBuff
,
sizeof
(
buff
)
/
sizeof
(
WCHAR
)
-
(
pBuff
-
buff
)))
{
hRes
=
E_INVALIDARG
;
...
...
dlls/oleaut32/variant.h
View file @
a2d74e5f
...
...
@@ -127,3 +127,5 @@ typedef struct tagVARIANT_NUMBER_CHARS
BOOL
VARIANT_GetLocalisedText
(
LANGID
,
DWORD
,
WCHAR
*
)
DECLSPEC_HIDDEN
;
HRESULT
VARIANT_ClearInd
(
VARIANTARG
*
)
DECLSPEC_HIDDEN
;
BOOL
get_date_format
(
LCID
,
DWORD
,
const
SYSTEMTIME
*
,
const
WCHAR
*
,
WCHAR
*
,
int
)
DECLSPEC_HIDDEN
;
dlls/oleaut32/vartype.c
View file @
a2d74e5f
...
...
@@ -6596,7 +6596,7 @@ static inline int output_int_len(int o, int min_len, WCHAR *date, int date_len)
}
/* format date string, similar to GetDateFormatW function but works on bigger range of dates */
static
BOOL
get_date_format
(
LCID
lcid
,
DWORD
flags
,
const
SYSTEMTIME
*
st
,
BOOL
get_date_format
(
LCID
lcid
,
DWORD
flags
,
const
SYSTEMTIME
*
st
,
const
WCHAR
*
fmt
,
WCHAR
*
date
,
int
date_len
)
{
static
const
LCTYPE
dayname
[]
=
{
...
...
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