avoid build warning
An odd one, it complained about security_attributes being defined but not used, but it was used..
This commit is contained in:
parent
3a08881214
commit
c926de73b9
1 changed files with 1 additions and 3 deletions
|
@ -70,13 +70,11 @@ openLock sharemode f = do
|
||||||
Right h -> Just h
|
Right h -> Just h
|
||||||
#else
|
#else
|
||||||
h <- withTString (fromRawFilePath f') $ \c_f ->
|
h <- withTString (fromRawFilePath f') $ \c_f ->
|
||||||
c_CreateFile c_f gENERIC_READ sharemode security_attributes
|
c_CreateFile c_f gENERIC_READ sharemode (maybePtr Nothing)
|
||||||
oPEN_ALWAYS fILE_ATTRIBUTE_NORMAL (maybePtr Nothing)
|
oPEN_ALWAYS fILE_ATTRIBUTE_NORMAL (maybePtr Nothing)
|
||||||
return $ if h == iNVALID_HANDLE_VALUE
|
return $ if h == iNVALID_HANDLE_VALUE
|
||||||
then Nothing
|
then Nothing
|
||||||
else Just h
|
else Just h
|
||||||
where
|
|
||||||
security_attributes = maybePtr Nothing
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
dropLock :: LockHandle -> IO ()
|
dropLock :: LockHandle -> IO ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue