@@ -400,16 +400,16 @@ HostFxrResolver::InvokeWhereToFindDotnet()
400
400
{
401
401
HRESULT hr = S_OK;
402
402
// Arguments to call where.exe
403
- STARTUPINFOW startupInfo = { 0 };
404
- PROCESS_INFORMATION processInformation = { 0 };
403
+ STARTUPINFOW startupInfo{ };
404
+ PROCESS_INFORMATION processInformation{ };
405
405
SECURITY_ATTRIBUTES securityAttributes;
406
406
407
407
CHAR pzFileContents[READ_BUFFER_SIZE];
408
408
HandleWrapper<InvalidHandleTraits> hStdOutReadPipe;
409
409
HandleWrapper<InvalidHandleTraits> hStdOutWritePipe;
410
410
HandleWrapper<InvalidHandleTraits> hProcess;
411
411
HandleWrapper<InvalidHandleTraits> hThread;
412
- CComBSTR pwzDotnetName = NULL ;
412
+ CComBSTR pwzDotnetName = nullptr ;
413
413
DWORD dwFilePointer;
414
414
BOOL fIsCurrentProcess64Bit ;
415
415
DWORD dwExitCode;
@@ -423,7 +423,7 @@ HostFxrResolver::InvokeWhereToFindDotnet()
423
423
424
424
// Set the security attributes for the read/write pipe
425
425
securityAttributes.nLength = sizeof (securityAttributes);
426
- securityAttributes.lpSecurityDescriptor = NULL ;
426
+ securityAttributes.lpSecurityDescriptor = nullptr ;
427
427
securityAttributes.bInheritHandle = TRUE ;
428
428
429
429
LOG_INFO (L" Invoking where.exe to find dotnet.exe" );
@@ -443,14 +443,14 @@ HostFxrResolver::InvokeWhereToFindDotnet()
443
443
pwzDotnetName = L" \" where.exe\" dotnet.exe" ;
444
444
445
445
// Create a process to invoke where.exe
446
- FINISHED_LAST_ERROR_IF (!CreateProcessW (NULL ,
446
+ FINISHED_LAST_ERROR_IF (!CreateProcessW (nullptr ,
447
447
pwzDotnetName,
448
- NULL ,
449
- NULL ,
448
+ nullptr ,
449
+ nullptr ,
450
450
TRUE ,
451
451
CREATE_NO_WINDOW,
452
- NULL ,
453
- NULL ,
452
+ nullptr ,
453
+ nullptr ,
454
454
&startupInfo,
455
455
&processInformation
456
456
));
@@ -480,7 +480,7 @@ HostFxrResolver::InvokeWhereToFindDotnet()
480
480
481
481
// Where succeeded.
482
482
// Reset file pointer to the beginning of the file.
483
- dwFilePointer = SetFilePointer (hStdOutReadPipe, 0 , NULL , FILE_BEGIN);
483
+ dwFilePointer = SetFilePointer (hStdOutReadPipe, 0 , nullptr , FILE_BEGIN);
484
484
if (dwFilePointer == INVALID_SET_FILE_POINTER)
485
485
{
486
486
FINISHED_IF_FAILED (E_FAIL);
@@ -490,7 +490,7 @@ HostFxrResolver::InvokeWhereToFindDotnet()
490
490
// As the call to where.exe succeeded (dotnet.exe was found), ReadFile should not hang.
491
491
// TODO consider putting ReadFile in a separate thread with a timeout to guarantee it doesn't block.
492
492
//
493
- FINISHED_LAST_ERROR_IF (!ReadFile (hStdOutReadPipe, pzFileContents, READ_BUFFER_SIZE, &dwNumBytesRead, NULL ));
493
+ FINISHED_LAST_ERROR_IF (!ReadFile (hStdOutReadPipe, pzFileContents, READ_BUFFER_SIZE, &dwNumBytesRead, nullptr ));
494
494
495
495
if (dwNumBytesRead >= READ_BUFFER_SIZE)
496
496
{
0 commit comments