Skip to content

Commit

Permalink
Comment Lines Edited
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzeyardabulut authored Aug 2, 2023
1 parent 68829b6 commit 2893b44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notify/src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,12 @@ fn start_read(rd: &ReadData, event_handler: Arc<Mutex<dyn EventHandler>>, handle

if ret == 0 {
// error reading. retransmute request memory to allow drop.
// allow overlapped to drop by omitting forget()
// allow overlapped to drop by omitting drop()
let request: Box<ReadDirectoryRequest> = mem::transmute(request_p);

ReleaseSemaphore(request.data.complete_sem, 1, ptr::null_mut());
} else {
// read ok. forget overlapped to let the completion routine handle memory
// read ok. drop overlapped to let the completion routine handle memory
std::mem::ManuallyDrop::drop(&mut overlapped);
}
}
Expand Down

0 comments on commit 2893b44

Please sign in to comment.