Skip to content

Commit

Permalink
Rename _ole32_from_oledll to _ole32
Browse files Browse the repository at this point in the history
  • Loading branch information
moi15moi committed Jan 22, 2025
1 parent 5f42d27 commit 7eaed94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions comtypes/_comobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def _InterlockedDecrement(ob: c_long) -> int:


_ole32_nohresult = WinDLL("ole32")
_ole32_from_oledll = OleDLL("ole32")
_ole32 = OleDLL("ole32")

_CoInitialize = _ole32_nohresult.CoInitialize
_CoInitialize.argtypes = [LPVOID]
Expand All @@ -128,11 +128,11 @@ def _InterlockedDecrement(ob: c_long) -> int:
_CoUninitialize.argtypes = []
_CoUninitialize.restype = None

_CoAddRefServerProcess = _ole32_from_oledll.CoAddRefServerProcess
_CoAddRefServerProcess = _ole32.CoAddRefServerProcess
_CoAddRefServerProcess.argtypes = []
_CoAddRefServerProcess.restype = ULONG

_CoReleaseServerProcess = _ole32_from_oledll.CoReleaseServerProcess
_CoReleaseServerProcess = _ole32.CoReleaseServerProcess
_CoReleaseServerProcess.argtypes = []
_CoReleaseServerProcess.restype = ULONG

Expand Down

0 comments on commit 7eaed94

Please sign in to comment.