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
6df21d40
Commit
6df21d40
authored
Feb 11, 2017
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Feb 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
propsys: Use snprintf in PROPVAR_ConvertFILETIME.
Signed-off-by:
Gerald Pfeifer
<
gerald@pfeifer.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
68c09530
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
propvar.c
dlls/propsys/propvar.c
+6
-4
No files found.
dlls/propsys/propvar.c
View file @
6df21d40
...
...
@@ -50,13 +50,15 @@ static HRESULT PROPVAR_ConvertFILETIME(PROPVARIANT *ppropvarDest,
static
const
char
format
[]
=
"%04d/%02d/%02d:%02d:%02d:%02d.%03d"
;
ppropvarDest
->
u
.
pszVal
=
HeapAlloc
(
GetProcessHeap
(),
0
,
lstrlenA
(
format
)
+
1
);
sizeof
(
format
)
);
if
(
!
ppropvarDest
->
u
.
pszVal
)
return
E_OUTOFMEMORY
;
sprintf
(
ppropvarDest
->
u
.
pszVal
,
format
,
time
.
wYear
,
time
.
wMonth
,
time
.
wDay
,
time
.
wHour
,
time
.
wMinute
,
time
.
wSecond
,
time
.
wMilliseconds
);
snprintf
(
ppropvarDest
->
u
.
pszVal
,
sizeof
(
format
),
format
,
time
.
wYear
,
time
.
wMonth
,
time
.
wDay
,
time
.
wHour
,
time
.
wMinute
,
time
.
wSecond
,
time
.
wMilliseconds
);
return
S_OK
;
}
...
...
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