Skip to content

Commit

Permalink
CustomBuildTool fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jxy-s committed Jan 10, 2025
1 parent 023f69a commit 1ef741a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/CustomBuildTool/Win32.cs
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,9 @@ out long LastWriteDateTime
CreationTime = 0;
LastWriteDateTime = 0;

if (!File.Exists(FileName))
return;

using (var fs = File.OpenRead(FileName))
{
if (!PInvoke.GetFileInformationByHandleEx(fs.SafeFileHandle, FILE_INFO_BY_HANDLE_CLASS.FileBasicInfo, &basicInfo, (uint)sizeof(FILE_BASIC_INFO)))
Expand Down

0 comments on commit 1ef741a

Please sign in to comment.