@@ -338,10 +338,10 @@ TMapFile::TMapFile(const char *name, const char *title, Option_t *option,
338338 fFd = (Longptr_t) CreateFile (fname, // pointer to name of the file
339339 GENERIC_WRITE | GENERIC_READ, // access (read-write) mode
340340 FILE_SHARE_WRITE | FILE_SHARE_READ, // share mode
341- NULL , // pointer to security attributes
341+ nullptr , // pointer to security attributes
342342 OPEN_ALWAYS, // how to create
343343 FILE_ATTRIBUTE_TEMPORARY, // file attributes
344- (HANDLE) NULL ); // handle to file with attributes to copy
344+ (HANDLE) nullptr ); // handle to file with attributes to copy
345345#endif
346346 if (fFd == (Longptr_t)INVALID_HANDLE_VALUE) {
347347 SysError (" TMapFile" , " file %s can not be opened" , fname);
@@ -355,10 +355,10 @@ TMapFile::TMapFile(const char *name, const char *title, Option_t *option,
355355 fFd = (Longptr_t) CreateFile (fname, // pointer to name of the file
356356 GENERIC_READ, // access (read-write) mode
357357 FILE_SHARE_WRITE | FILE_SHARE_READ, // share mode
358- NULL , // pointer to security attributes
358+ nullptr , // pointer to security attributes
359359 OPEN_EXISTING, // how to create
360360 FILE_ATTRIBUTE_TEMPORARY, // file attributes
361- (HANDLE) NULL ); // handle to file with attributes to copy
361+ (HANDLE) nullptr ); // handle to file with attributes to copy
362362#endif
363363 if (fFd == (Longptr_t)INVALID_HANDLE_VALUE) {
364364 SysError (" TMapFile" , " file %s can not be opened for reading" , fname);
@@ -864,7 +864,7 @@ void TMapFile::CreateSemaphore(int pid)
864864 char buffer[] =" ROOT_Semaphore_xxxxxxxx" ;
865865 int lbuf = strlen (buffer);
866866 if (!pid) fSemaphore = getpid ();
867- fhSemaphore = (ULongptr_t)CreateMutex (NULL ,FALSE ,itoa (fSemaphore ,&buffer[lbuf-8 ],16 ));
867+ fhSemaphore = (ULongptr_t)CreateMutex (nullptr ,FALSE ,itoa (fSemaphore ,&buffer[lbuf-8 ],16 ));
868868 if (fhSemaphore == 0 ) fSemaphore = (Longptr_t)INVALID_HANDLE_VALUE;
869869#endif
870870#endif
0 commit comments