Skip to content

Commit

Permalink
Do not create non-existing files when copying
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell authored and Rufflewind committed May 20, 2024
1 parent 8d3a20d commit 81d4be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion System/Directory/Internal/Windows.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ openFileForRead (OsString path) =
Win32.gENERIC_READ
maxShareMode
Nothing
Win32.oPEN_ALWAYS
Win32.oPEN_EXISTING
(Win32.fILE_ATTRIBUTE_NORMAL .|. possiblyOverlapped)
Nothing)
Win32.closeHandle
Expand Down

0 comments on commit 81d4be1

Please sign in to comment.