Skip to content

Commit cfc97a1

Browse files
committed
fix: change nullptr to 0 for DWORD parameter in GetTimeFormat call
1 parent 8209049 commit cfc97a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Core/Tools/Autorun/Wnd_file.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,9 @@ void Delete_Msg_File ( void )
307307
wsprintf( buff, "===========================================================\r\n" );
308308
nBytes = file.Write( buff, strlen( buff ));
309309

310-
GetDateFormat( LOCALE_USER_DEFAULT, DATE_SHORTDATE, nullptr, NULL, date, 50 );
310+
GetDateFormat( LOCALE_USER_DEFAULT, DATE_SHORTDATE, nullptr, nullptr, date, 50 );
311311
// GetTimeFormat( LOCALE_USER_DEFAULT, TIME_NOSECONDS, NULL, NULL, time, 30 );
312-
GetTimeFormat( LOCALE_USER_DEFAULT, nullptr, NULL, "hh':'mm':'ss tt", time, 30 );
312+
GetTimeFormat( LOCALE_USER_DEFAULT, 0, nullptr, "hh':'mm':'ss tt", time, 30 );
313313
wsprintf( buff, "SETUP: File: %s Date: %s Time: %s.\r\n", DebugFile, date, time );
314314
nBytes = file.Write( buff, strlen( buff ));
315315

0 commit comments

Comments
 (0)