msvcrt: Use NULL instead of casting zero.

This commit is contained in:
Michael Stefaniuc 2008-12-05 07:47:01 +01:00 committed by Alexandre Julliard
parent 819ad6417b
commit 276b938e1d
2 changed files with 2 additions and 2 deletions

View File

@ -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 );

View File

@ -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;