Skip to content

Commit

Permalink
Fix some build issues from previous commit for dotnet#77835 again (5)
Browse files Browse the repository at this point in the history
• Add missing nullable ? for dstHandle (which obtains the file lock)
  • Loading branch information
hamarb123 committed Dec 5, 2022
1 parent 4c5a995 commit c65e229
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static partial void CopyFile(string sourceFullPath, string destFullPath,
if (overwrite)
{
//Get a lock to the dest file for compat reasons, and then delete it.
using SafeFileHandle dstHandle = OpenCopyFileDstHandle(destFullPath, true, startedCopyFile, false);
using SafeFileHandle? dstHandle = OpenCopyFileDstHandle(destFullPath, true, startedCopyFile, false);
File.Delete(destFullPath);
goto tryAgainWithReadLink;
}
Expand Down

0 comments on commit c65e229

Please sign in to comment.