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
b1b54ae3
Commit
b1b54ae3
authored
Mar 13, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/datetime: Use user locale for format.
parent
da550ed2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
datetime.c
dlls/comctl32/datetime.c
+3
-3
No files found.
dlls/comctl32/datetime.c
View file @
b1b54ae3
...
...
@@ -289,7 +289,7 @@ DATETIME_SetFormatW (DATETIME_INFO *infoPtr, LPCWSTR lpszFormat)
format_item
=
LOCALE_STIMEFORMAT
;
else
/* DTS_SHORTDATEFORMAT */
format_item
=
LOCALE_SSHORTDATE
;
GetLocaleInfoW
(
GetSystemDefaultLCID
()
,
format_item
,
format_buf
,
sizeof
(
format_buf
)
/
sizeof
(
format_buf
[
0
]));
GetLocaleInfoW
(
LOCALE_USER_DEFAULT
,
format_item
,
format_buf
,
sizeof
(
format_buf
)
/
sizeof
(
format_buf
[
0
]));
lpszFormat
=
format_buf
;
}
...
...
@@ -410,12 +410,12 @@ DATETIME_ReturnTxt (const DATETIME_INFO *infoPtr, int count, LPWSTR result, int
wsprintfW
(
result
,
fmt__2dW
,
date
.
wMonth
);
break
;
case
THREECHARMONTH
:
GetLocaleInfoW
(
GetSystemDefaultLCID
(),
LOCALE_SMONTHNAME1
+
date
.
wMonth
-
1
,
GetLocaleInfoW
(
LOCALE_USER_DEFAULT
,
LOCALE_SMONTHNAME1
+
date
.
wMonth
-
1
,
buffer
,
sizeof
(
buffer
)
/
sizeof
(
buffer
[
0
]));
wsprintfW
(
result
,
fmt__3sW
,
buffer
);
break
;
case
FULLMONTH
:
GetLocaleInfoW
(
GetSystemDefaultLCID
(),
LOCALE_SMONTHNAME1
+
date
.
wMonth
-
1
,
GetLocaleInfoW
(
LOCALE_USER_DEFAULT
,
LOCALE_SMONTHNAME1
+
date
.
wMonth
-
1
,
result
,
resultSize
);
break
;
case
ONELETTERAMPM
:
...
...
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