Skip to content
Snippets Groups Projects
Commit 610d4c3a authored by Ben Gamari's avatar Ben Gamari
Browse files

base: Fix Windows event manager

Fix an earlier rebase mistake.
parent 8dbf5280
No related branches found
No related tags found
No related merge requests found
...@@ -668,7 +668,7 @@ withOverlappedEx mgr fname h offset startCB completionCB = do ...@@ -668,7 +668,7 @@ withOverlappedEx mgr fname h offset startCB completionCB = do
-- the pointer. -- the pointer.
debugIO $ "## Waiting for cancellation record... " debugIO $ "## Waiting for cancellation record... "
_ <- FFI.getOverlappedResult h lpol True _ <- FFI.getOverlappedResult h lpol True
oldDataPtr <- exchangePtr ptr_lpol nullReq oldDataPtr <- I.exchangePtr ptr_lpol nullReq
when (oldDataPtr == cdData) $ when (oldDataPtr == cdData) $
do reqs1 <- removeRequest do reqs1 <- removeRequest
debugIO $ "-1.. " ++ show reqs1 ++ " requests queued after error." debugIO $ "-1.. " ++ show reqs1 ++ " requests queued after error."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment