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
276b938e
Commit
276b938e
authored
Dec 05, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use NULL instead of casting zero.
parent
819ad641
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
scanf.c
dlls/msvcrt/tests/scanf.c
+1
-1
time.c
dlls/msvcrt/time.c
+1
-1
No files found.
dlls/msvcrt/tests/scanf.c
View file @
276b938e
...
...
@@ -51,7 +51,7 @@ static void test_sscanf( void )
ok
(
ptr
==
(
void
*
)
0x46F172
,
"sscanf reads %p instead of %x
\n
"
,
ptr
,
0x46F172
);
ok
(
sscanf
(
"0x46F173"
,
"%p"
,
&
ptr
)
==
1
,
"sscanf failed
\n
"
);
ok
(
ptr
==
(
void
*
)
0
,
"sscanf reads %p instead of %x
\n
"
,
ptr
,
0
);
ok
(
ptr
==
NULL
,
"sscanf reads %p instead of %x
\n
"
,
ptr
,
0
);
ok
(
sscanf
(
"-46F174"
,
"%p"
,
&
ptr
)
==
1
,
"sscanf failed
\n
"
);
ok
(
ptr
==
(
void
*
)
0xFFB90E8C
,
"sscanf reads %p instead of %x
\n
"
,
ptr
,
0xFFB90E8C
);
...
...
dlls/msvcrt/time.c
View file @
276b938e
...
...
@@ -340,7 +340,7 @@ void CDECL MSVCRT__tzset(void)
struct
tm
*
tmp
;
long
zone_january
,
zone_july
;
t
=
(
time
(
(
time_t
*
)
0
)
/
seconds_in_year
)
*
seconds_in_year
;
t
=
(
time
(
NULL
)
/
seconds_in_year
)
*
seconds_in_year
;
tmp
=
localtime
(
&
t
);
zone_january
=
-
tmp
->
tm_gmtoff
;
t
+=
seconds_in_year
/
2
;
...
...
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