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
f8ba490e
Commit
f8ba490e
authored
Feb 25, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comctl32/datetime: Fix use of out-of-scope local buffer (Coverity).
parent
101c8ca5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
datetime.c
dlls/comctl32/datetime.c
+7
-6
No files found.
dlls/comctl32/datetime.c
View file @
f8ba490e
...
...
@@ -277,10 +277,11 @@ DATETIME_UseFormat (DATETIME_INFO *infoPtr, LPCWSTR formattxt)
static
BOOL
DATETIME_SetFormatW
(
DATETIME_INFO
*
infoPtr
,
LPCWSTR
lpszF
ormat
)
DATETIME_SetFormatW
(
DATETIME_INFO
*
infoPtr
,
LPCWSTR
f
ormat
)
{
if
(
!
lpszFormat
)
{
WCHAR
format_buf
[
80
];
WCHAR
format_buf
[
80
];
if
(
!
format
)
{
DWORD
format_item
;
if
(
infoPtr
->
dwStyle
&
DTS_LONGDATEFORMAT
)
...
...
@@ -290,13 +291,13 @@ DATETIME_SetFormatW (DATETIME_INFO *infoPtr, LPCWSTR lpszFormat)
else
/* DTS_SHORTDATEFORMAT */
format_item
=
LOCALE_SSHORTDATE
;
GetLocaleInfoW
(
LOCALE_USER_DEFAULT
,
format_item
,
format_buf
,
sizeof
(
format_buf
)
/
sizeof
(
format_buf
[
0
]));
lpszF
ormat
=
format_buf
;
f
ormat
=
format_buf
;
}
DATETIME_UseFormat
(
infoPtr
,
lpszF
ormat
);
DATETIME_UseFormat
(
infoPtr
,
f
ormat
);
InvalidateRect
(
infoPtr
->
hwndSelf
,
NULL
,
TRUE
);
return
1
;
return
TRUE
;
}
...
...
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