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
643e8740
Commit
643e8740
authored
May 06, 2003
by
Jukka Heinonen
Committed by
Alexandre Julliard
May 06, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Report errors to applications when illegal dates are passed to set
system date call (required by many installation checks).
parent
97b7bc19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
int21.c
dlls/winedos/int21.c
+19
-3
No files found.
dlls/winedos/int21.c
View file @
643e8740
...
...
@@ -1543,9 +1543,25 @@ void WINAPI DOSVM_Int21Handler( CONTEXT86 *context )
break
;
case
0x2b
:
/* SET SYSTEM DATE */
FIXME
(
"SetSystemDate(%02d/%02d/%04d): not allowed
\n
"
,
DL_reg
(
context
),
DH_reg
(
context
),
CX_reg
(
context
)
);
SET_AL
(
context
,
0
);
/* Let's pretend we succeeded */
TRACE
(
"SET SYSTEM DATE
\n
"
);
{
WORD
year
=
CX_reg
(
context
);
BYTE
month
=
DH_reg
(
context
);
BYTE
day
=
DL_reg
(
context
);
if
(
year
>=
1980
&&
year
<=
2099
&&
month
>=
1
&&
month
<=
12
&&
day
>=
1
&&
day
<=
31
)
{
FIXME
(
"SetSystemDate(%02d/%02d/%04d): not allowed
\n
"
,
day
,
month
,
year
);
SET_AL
(
context
,
0
);
/* Let's pretend we succeeded */
}
else
{
SET_AL
(
context
,
0xff
);
/* invalid date */
}
}
break
;
case
0x2c
:
/* GET SYSTEM TIME */
...
...
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