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
f8a63ffd
Commit
f8a63ffd
authored
Jan 30, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 31, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Fix printing negative values in debugstr_time().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7c9595ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
strmbase_private.h
dlls/strmbase/strmbase_private.h
+6
-4
No files found.
dlls/strmbase/strmbase_private.h
View file @
f8a63ffd
...
...
@@ -34,15 +34,17 @@
static
inline
const
char
*
debugstr_time
(
REFERENCE_TIME
time
)
{
ULONGLONG
abstime
=
time
>=
0
?
time
:
-
time
;
unsigned
int
i
=
0
,
j
=
0
;
char
buffer
[
2
2
],
rev
[
22
];
char
buffer
[
2
3
],
rev
[
23
];
while
(
time
||
i
<=
8
)
while
(
abs
time
||
i
<=
8
)
{
buffer
[
i
++
]
=
'0'
+
(
time
%
10
);
time
/=
10
;
buffer
[
i
++
]
=
'0'
+
(
abs
time
%
10
);
abs
time
/=
10
;
if
(
i
==
7
)
buffer
[
i
++
]
=
'.'
;
}
if
(
time
<
0
)
buffer
[
i
++
]
=
'-'
;
while
(
i
--
)
rev
[
j
++
]
=
buffer
[
i
];
rev
[
j
]
=
0
;
...
...
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