Merge pull request #89 from HakanSeven12/claude/release-action-windows-build-mm1lrn

fix(windows): cast COINIT_APARTMENTTHREADED to u32 for windows-sys 0.61.2
This commit is contained in:
Hakan Seven 2026-06-12 14:48:20 +03:00 committed by GitHub
commit e26563ea5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -143,7 +143,7 @@ mod windows_impl {
pub(super) fn set_default() -> Result<String, String> {
unsafe {
let co = CoInitializeEx(std::ptr::null(), COINIT_APARTMENTTHREADED);
let co = CoInitializeEx(std::ptr::null(), COINIT_APARTMENTTHREADED as u32);
// S_OK (0) / S_FALSE (1) mean we initialised COM and must balance it
// with CoUninitialize. Any other value: another init already owns the
// thread's apartment, so we leave it alone.