Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion crates/xcl/src/vfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -963,11 +963,12 @@ mod tests {
std::ptr::null_mut(),
)
};
let error = unsafe { windows_sys::Win32::Foundation::GetLastError() };
assert_eq!(h, windows_sys::Win32::Foundation::INVALID_HANDLE_VALUE);
// Windows' own codes are the reference; Wine answers a directory opened with
// FILE_FLAG_BACKUP_SEMANTICS and TRUNCATE_EXISTING with ERROR_FILE_EXISTS
if !crate::util::under_wine() {
assert_eq!(unsafe { windows_sys::Win32::Foundation::GetLastError() }, expected);
assert_eq!(error, expected);
}
assert_eq!(v.open_decision("G:\\data", GENERIC_WRITE, TRUNCATE_EXISTING, flags), Decision::Fail(expected));
}
Expand Down
Loading