Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix broken unregistration of 64bit type libraries (second attempt) (#678
) * Fix broken unregistration of 64bit type libraries The UnRegisterTypeLib function currently always assume 32bit type libraries (SYS_WIN32) if called without explicit `syskind` argument. This is currently the case when UnRegisterTypeLib is called implicitly from comtypes.server.register.UseCommandLine, since the `_reg_typelib_` field only contains the first 3 libID , wVerMajor and wVerMinor arguments. Propose to fix the problem by updating the hardcoding to SYS_WIN64 for 64bit Python and SYS_WIN32 for 32bit Python installations. * Reformatting UnRegisterTypeLib arguments in accordance with auto-formatter suggestion.
- Loading branch information