Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9183e584
Commit
9183e584
authored
Mar 21, 2014
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp110: Add _Xtime_get_ticks implementation.
parent
d5fd04f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
msvcp110.spec
dlls/msvcp110/msvcp110.spec
+1
-1
misc.c
dlls/msvcp90/misc.c
+17
-0
No files found.
dlls/msvcp110/msvcp110.spec
View file @
9183e584
...
...
@@ -3891,7 +3891,7 @@
@ stub _Xp_subx
@ stub _Xtime_diff_to_millis
@ stub _Xtime_diff_to_millis2
@
stub _Xtime_get_ticks
@
cdecl _Xtime_get_ticks()
@ stub __Wcrtomb_lk
# extern _Zero
@ cdecl towctrans(long long)
...
...
dlls/msvcp90/misc.c
View file @
9183e584
...
...
@@ -28,6 +28,12 @@
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
msvcp
);
#define SECSPERDAY 86400
/* 1601 to 1970 is 369 years plus 89 leap days */
#define SECS_1601_TO_1970 ((369 * 365 + 89) * (ULONGLONG)SECSPERDAY)
#define TICKSPERSEC 10000000
#define TICKS_1601_TO_1970 (SECS_1601_TO_1970 * TICKSPERSEC)
struct
__Container_proxy
;
typedef
struct
{
...
...
@@ -343,3 +349,14 @@ void __thiscall _Container_base12__Swap_all(
if
(
that
->
proxy
)
that
->
proxy
->
cont
=
that
;
}
/* _Xtime_get_ticks */
LONGLONG
__cdecl
_Xtime_get_ticks
(
void
)
{
FILETIME
ft
;
TRACE
(
"
\n
"
);
GetSystemTimeAsFileTime
(
&
ft
);
return
((
LONGLONG
)
ft
.
dwHighDateTime
<<
32
)
+
ft
.
dwLowDateTime
-
TICKS_1601_TO_1970
;
}
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