mirror of
https://github.com/openai/codex.git
synced 2026-04-24 22:54:54 +00:00
Fix Windows HANDLE check for windows-sys 0.52
This commit is contained in:
@@ -68,7 +68,7 @@ impl PowerRequest {
|
||||
},
|
||||
};
|
||||
let handle = unsafe { PowerCreateRequest(&context) };
|
||||
if handle.is_null() {
|
||||
if handle == 0 {
|
||||
let error = std::io::Error::last_os_error();
|
||||
return Err(format!("PowerCreateRequest failed: {error}"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user