File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import qualified System.File.PlatformPath as PFP
12
12
import System.IO
13
13
import System.IO.Temp
14
14
15
- import Control.Exception (bracketOnError )
16
15
import Data.Bits
17
16
import System.OsPath.Windows ( WindowsPath , pstr )
18
17
import qualified System.OsPath.Windows as WS
@@ -36,7 +35,7 @@ main = withSystemTempDirectory "tar-test" $ \baseDir' -> do
36
35
]
37
36
38
37
openFile32 :: WindowsPath -> IOMode -> IO Win32. HANDLE
39
- openFile32 fp iomode =
38
+ openFile32 fp _iomode =
40
39
WS. createFile
41
40
fp
42
41
Win32. gENERIC_READ
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ openFile fp' iomode = (`ioeSetWsPath` fp') `modifyIOError` do
81
81
#endif
82
82
Nothing )
83
83
Win32. closeHandle
84
- (toHandle fp iomode)
84
+ (toHandle fp' iomode)
85
85
where
86
86
accessMode = case iomode of
87
87
ReadMode -> Win32. gENERIC_READ
You can’t perform that action at this time.
0 commit comments