@@ -49,14 +49,14 @@ unsafe void ComputeSizeRecursively(string path, CancellationToken token)
4949
5050 while ( queue . TryDequeue ( out var directory ) )
5151 {
52- WIN32_FIND_DATAW * findData = default ;
52+ WIN32_FIND_DATAW findData = default ;
5353
5454 fixed ( char * pszFilePath = directory + "\\ *.*" )
5555 {
5656 var hFile = PInvoke . FindFirstFileEx (
5757 pszFilePath ,
5858 FINDEX_INFO_LEVELS . FindExInfoBasic ,
59- findData ,
59+ & findData ,
6060 FINDEX_SEARCH_OPS . FindExSearchNameMatch ,
6161 null ,
6262 FIND_FIRST_EX_FLAGS . FIND_FIRST_EX_LARGE_FETCH ) ;
@@ -65,19 +65,19 @@ unsafe void ComputeSizeRecursively(string path, CancellationToken token)
6565 {
6666 do
6767 {
68- FILE_FLAGS_AND_ATTRIBUTES attributes = ( FILE_FLAGS_AND_ATTRIBUTES ) findData -> dwFileAttributes ;
68+ FILE_FLAGS_AND_ATTRIBUTES attributes = ( FILE_FLAGS_AND_ATTRIBUTES ) findData . dwFileAttributes ;
6969
7070 if ( attributes . HasFlag ( FILE_FLAGS_AND_ATTRIBUTES . FILE_ATTRIBUTE_REPARSE_POINT ) )
7171 // Skip symbolic links and junctions
7272 continue ;
7373
74- var itemPath = Path . Combine ( directory , findData -> cFileName . ToString ( ) ) ;
74+ var itemPath = Path . Combine ( directory , findData . cFileName . ToString ( ) ) ;
7575
7676 if ( attributes . HasFlag ( FILE_FLAGS_AND_ATTRIBUTES . FILE_ATTRIBUTE_DIRECTORY ) )
7777 {
7878 ComputeFileSize ( itemPath ) ;
7979 }
80- else if ( findData -> cFileName . ToString ( ) is string fileName &&
80+ else if ( findData . cFileName . ToString ( ) is string fileName &&
8181 fileName . Equals ( "." , StringComparison . OrdinalIgnoreCase ) &&
8282 fileName . Equals ( ".." , StringComparison . OrdinalIgnoreCase ) )
8383 {
@@ -87,7 +87,7 @@ unsafe void ComputeSizeRecursively(string path, CancellationToken token)
8787 if ( token . IsCancellationRequested )
8888 break ;
8989 }
90- while ( PInvoke . FindNextFile ( hFile , findData ) ) ;
90+ while ( PInvoke . FindNextFile ( hFile , & findData ) ) ;
9191 }
9292
9393 PInvoke . CloseHandle ( hFile ) ;
0 commit comments