Skip to content

Commit

Permalink
m: try windows ci again
Browse files Browse the repository at this point in the history
Signed-off-by: John Nunley <[email protected]>
  • Loading branch information
notgull committed Jun 12, 2024
1 parent 4660fca commit 592ecea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions async-dns/src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,13 @@ where

// Create the initial request.
let request = dns::DNS_QUERY_REQUEST {
Version: dns::DNS_QUERY_REQUEST_VERSION1,
Version: 1,
QueryName: name.as_ptr(),
QueryType: query_type,
QueryOptions: 0,
pDnsServerList: std::ptr::null_mut(),
pQueryCompletionCallback: Some(dns_completion_callback::<F>),
pQueryContext: Box::into_raw(complete) as *mut c_void,
InterfaceIndex: 0,
..unsafe { mem::zeroed() }
};

// Create space for the results.
Expand Down Expand Up @@ -207,6 +206,8 @@ where
// The request failed. The closure will not be called, so dealloc it.
drop(unsafe { Box::from_raw(request.pQueryContext as *mut F) });

println!("got error code: {err:}");

// This may be a DNS error.
if matches!(err, 0x2329..=0x26B2) {
Err(io::Error::new(
Expand Down

0 comments on commit 592ecea

Please sign in to comment.