-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix `OSError: Error loading *.dll; The operation completed successful…
…ly.` When LoadLibraryExW() is called from `ctypes`, the 64-bit void* return value is cast to a 32-bit C int by default. If the base address of the loaded DLL is a multiple of 2**32, then the lower 32 bits are 0, so Python sees a return value of 0 and assumes that the DLL failed to load. Set the return type properly so that the downcast is not done. This fixes an intermittent issue with Python <= 3.7 or Conda Python <= 3.9 where an `OSError` is raised saying that a DLL failed to load but also that the operation completed successfully. Fix #51
- Loading branch information
Showing
6 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.