mirror of
https://github.com/aiclientproxy/proxycast.git
synced 2026-09-24 23:10:56 +08:00
## 修复内容 ### 1. BrowserInterceptorError 错误枚举扩展 - 添加 AlreadyRunning 变体:表示拦截器已在运行 - 添加 UnsupportedPlatform 变体:表示不支持的平台 - 添加 IoError 变体:包装 std::io::Error - 实现 From<std::io::Error> trait 自动转换 ### 2. Windows API 类型转换修复 - state_manager.rs: * 第 270-286 行:修复 RegQueryValueExW 的 buffer_size 参数类型 * 第 334-350 行:同样的修复应用于另一个调用点 * 第 456-467 行:修复 RegSetValueExW 参数类型,使用 std::slice::from_raw_parts - windows.rs: * 第 107-133 行:修复 RegQueryValueExW buffer_size 类型转换 ### 3. 修复原因 Windows Registry API 要求: - RegQueryValueExW 的 buffer_size 参数必须是 *mut u32 - 在 64 位系统上,usize 是 64 位,不能直接转换为 *mut u32 - 解决方案:创建中间 u32 变量进行转换 ## 测试 - [x] Windows 平台编译通过 - [x] 无编译错误 - [x] 代码格式化通过 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>