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
a94a2102
Commit
a94a2102
authored
May 15, 2019
by
Huw Davies
Committed by
Alexandre Julliard
May 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Simplify is_not_current().
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3593f7da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
profile.c
dlls/kernel32/profile.c
+7
-7
No files found.
dlls/kernel32/profile.c
View file @
a94a2102
...
@@ -713,15 +713,15 @@ static void PROFILE_ReleaseFile(void)
...
@@ -713,15 +713,15 @@ static void PROFILE_ReleaseFile(void)
* two seconds, so files that are not at least two seconds old might
* two seconds, so files that are not at least two seconds old might
* keep their time even on modification, so don't cache them.
* keep their time even on modification, so don't cache them.
*/
*/
static
BOOL
is_not_current
(
FILETIME
*
ft
)
static
BOOL
is_not_current
(
FILETIME
*
ft
)
{
{
FILETIME
Now
;
LARGE_INTEGER
now
;
LONGLONG
ftll
,
nowll
;
LONGLONG
ftll
;
GetSystemTimeAsFileTime
(
&
Now
);
NtQuerySystemTime
(
&
now
);
ftll
=
((
LONGLONG
)
ft
->
dwHighDateTime
<<
32
)
+
ft
->
dwLowDateTime
;
ftll
=
((
LONGLONG
)
ft
->
dwHighDateTime
<<
32
)
+
ft
->
dwLowDateTime
;
nowll
=
((
LONGLONG
)
Now
.
dwHighDateTime
<<
32
)
+
Now
.
dwLowDateTime
;
TRACE
(
"%s; %s
\n
"
,
wine_dbgstr_longlong
(
ftll
),
wine_dbgstr_longlong
(
now
.
QuadPart
));
TRACE
(
"%08x;%08x
\n
"
,(
unsigned
)
ftll
+
21000000
,(
unsigned
)
nowll
);
return
ftll
+
21000000
<
now
.
QuadPart
;
return
ftll
+
21000000
<
nowll
;
}
}
/***********************************************************************
/***********************************************************************
...
...
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