From 3785040e63d7ad70b35b609989a9bcaa7b1a0605 Mon Sep 17 00:00:00 2001 From: moi15moi Date: Sat, 25 Jan 2025 15:24:12 -0500 Subject: [PATCH] [_post_coinit\unknwn.py] Import _CoUninitialize --- comtypes/_post_coinit/unknwn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comtypes/_post_coinit/unknwn.py b/comtypes/_post_coinit/unknwn.py index 6de21da5..e1e29c2e 100644 --- a/comtypes/_post_coinit/unknwn.py +++ b/comtypes/_post_coinit/unknwn.py @@ -5,7 +5,7 @@ from ctypes import HRESULT, POINTER, byref, c_ulong, c_void_p from typing import TYPE_CHECKING, ClassVar, List, Optional, Type, TypeVar -from comtypes import GUID, _ole32_nohresult, com_interface_registry +from comtypes import GUID, _CoUninitialize, com_interface_registry from comtypes._memberspec import STDMETHOD, ComMemberGenerator, DispMemberGenerator from comtypes._post_coinit import _cominterface_meta_patcher as _meta_patch from comtypes._post_coinit.instancemethod import instancemethod @@ -17,7 +17,7 @@ def _shutdown( - func=_ole32_nohresult.CoUninitialize, + func=_CoUninitialize, _debug=logger.debug, _exc_clear=getattr(sys, "exc_clear", lambda: None), ):