Skip to content

Commit bf1ae65

Browse files
committed
Undo trivial variable name change introduced by claude.ai (WINBASE_LOAD_LIBRARY_SEARCH_*).
1 parent 9bbc9e6 commit bf1ae65

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cuda_pathfinder/cuda/pathfinder/_dynamic_libs/load_dl_windows.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
from cuda.pathfinder._dynamic_libs.load_dl_common import LoadedDL
1111

12-
# Windows constants
13-
LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR = 0x00000100
14-
LOAD_LIBRARY_SEARCH_DEFAULT_DIRS = 0x00001000
12+
# Mirrors WinBase.h (unfortunately not defined already elsewhere)
13+
WINBASE_LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR = 0x00000100
14+
WINBASE_LOAD_LIBRARY_SEARCH_DEFAULT_DIRS = 0x00001000
1515

1616
POINTER_ADDRESS_SPACE = 2 ** (struct.calcsize("P") * 8)
1717

@@ -161,7 +161,7 @@ def load_with_abs_path(libname: str, found_path: str) -> LoadedDL:
161161
if libname in LIBNAMES_REQUIRING_OS_ADD_DLL_DIRECTORY:
162162
add_dll_directory(found_path)
163163

164-
flags = LOAD_LIBRARY_SEARCH_DEFAULT_DIRS | LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR
164+
flags = WINBASE_LOAD_LIBRARY_SEARCH_DEFAULT_DIRS | WINBASE_LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR
165165
handle = kernel32.LoadLibraryExW(found_path, None, flags)
166166

167167
if not handle:

0 commit comments

Comments
 (0)