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
1cd07940
Commit
1cd07940
authored
Dec 10, 1998
by
Ulrich Weigand
Committed by
Alexandre Julliard
Dec 10, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let the System_Time_Selector clock tick.
parent
7b57b24f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
vxd.c
msdos/vxd.c
+10
-8
No files found.
msdos/vxd.c
View file @
1cd07940
...
...
@@ -308,11 +308,11 @@ void VXD_Timer( CONTEXT *context )
/***********************************************************************
* VXD_TimerAPI
*/
static
DWORD
System_Time
=
0
;
static
WORD
System_Time_Selector
=
0
;
static
void
System_Time_Tick
(
WORD
timer
)
{
System_Time
+=
55
;
}
void
VXD_TimerAPI
(
CONTEXT
*
context
)
{
static
DWORD
clockTicks
=
0
;
static
WORD
clockTickSelector
=
0
;
unsigned
service
=
AX_reg
(
context
);
TRACE
(
vxd
,
"[%04x] TimerAPI
\n
"
,
(
UINT16
)
service
);
...
...
@@ -325,12 +325,14 @@ void VXD_TimerAPI ( CONTEXT *context )
break
;
case
0x0009
:
/* get system time selector */
FIXME
(
vxd
,
"Get_System_Time_Selector: this clock doesn't tick!
\n
"
);
if
(
!
System_Time_Selector
)
{
System_Time_Selector
=
SELECTOR_AllocBlock
(
&
System_Time
,
sizeof
(
DWORD
),
SEGMENT_DATA
,
FALSE
,
TRUE
);
CreateSystemTimer
(
55
,
System_Time_Tick
);
}
if
(
!
clockTickSelector
)
clockTickSelector
=
SELECTOR_AllocBlock
(
&
clockTicks
,
sizeof
(
DWORD
),
SEGMENT_DATA
,
FALSE
,
TRUE
);
AX_reg
(
context
)
=
clockTickSelector
;
AX_reg
(
context
)
=
System_Time_Selector
;
RESET_CFLAG
(
context
);
break
;
...
...
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