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
b0c63af1
Commit
b0c63af1
authored
Apr 20, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: Make GetTickCount call NtGetTickCount.
parent
2333c805
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
kernel_main.c
dlls/kernel/kernel_main.c
+1
-9
No files found.
dlls/kernel/kernel_main.c
View file @
b0c63af1
...
...
@@ -59,8 +59,6 @@ static CRITICAL_SECTION_DEBUG critsect_debug =
};
static
CRITICAL_SECTION
ldt_section
=
{
&
critsect_debug
,
-
1
,
0
,
0
,
0
,
0
};
static
DWORD
server_start_time
;
/***********************************************************************
* locking for LDT routines
*/
...
...
@@ -106,10 +104,6 @@ static void thread_detach(void)
static
BOOL
process_attach
(
void
)
{
SYSTEM_INFO
si
;
SYSTEM_TIMEOFDAY_INFORMATION
sti
;
NtQuerySystemInformation
(
SystemTimeOfDayInformation
,
&
sti
,
sizeof
(
sti
),
NULL
);
RtlTimeToSecondsSince1970
(
&
sti
.
liKeBootTime
,
&
server_start_time
);
/* FIXME: should probably be done in ntdll */
GetSystemInfo
(
&
si
);
...
...
@@ -230,7 +224,5 @@ INT WINAPI MulDiv( INT nMultiplicand, INT nMultiplier, INT nDivisor)
*/
DWORD
WINAPI
GetTickCount
(
void
)
{
struct
timeval
t
;
gettimeofday
(
&
t
,
NULL
);
return
((
t
.
tv_sec
-
server_start_time
)
*
1000
)
+
(
t
.
tv_usec
/
1000
);
return
NtGetTickCount
();
}
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