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
7960ed9d
Commit
7960ed9d
authored
Aug 28, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
propsys: Don't use the format string size as buffer size.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
feac70c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
propvar.c
dlls/propsys/propvar.c
+2
-8
No files found.
dlls/propsys/propvar.c
View file @
7960ed9d
...
...
@@ -49,22 +49,16 @@ static HRESULT PROPVAR_ConvertFILETIME(const FILETIME *ft, PROPVARIANT *ppropvar
switch
(
vt
)
{
case
VT_LPSTR
:
{
static
const
char
format
[]
=
"%04d/%02d/%02d:%02d:%02d:%02d.%03d"
;
ppropvarDest
->
u
.
pszVal
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
format
));
ppropvarDest
->
u
.
pszVal
=
HeapAlloc
(
GetProcessHeap
(),
0
,
64
);
if
(
!
ppropvarDest
->
u
.
pszVal
)
return
E_OUTOFMEMORY
;
snprintf
(
ppropvarDest
->
u
.
pszVal
,
sizeof
(
format
),
format
,
sprintf
(
ppropvarDest
->
u
.
pszVal
,
"%04d/%02d/%02d:%02d:%02d:%02d.%03d"
,
time
.
wYear
,
time
.
wMonth
,
time
.
wDay
,
time
.
wHour
,
time
.
wMinute
,
time
.
wSecond
,
time
.
wMilliseconds
);
return
S_OK
;
}
default:
FIXME
(
"Unhandled target type: %d
\n
"
,
vt
);
...
...
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