From d0463db9a12eae5290ac90e15a9f3a0be0c16684 Mon Sep 17 00:00:00 2001 From: Gabriel Selzer Date: Fri, 15 May 2026 16:15:53 -0500 Subject: [PATCH 1/3] Add DLL directory to dependency search paths --- OpenScanLib/src/Module.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/OpenScanLib/src/Module.c b/OpenScanLib/src/Module.c index b660012..a3c1d0f 100644 --- a/OpenScanLib/src/Module.c +++ b/OpenScanLib/src/Module.c @@ -72,7 +72,11 @@ OSc_RichError *OScInternal_FileList_Create(ss8str **files, const char *path, OSc_RichError *OScInternal_Module_Load(OScInternal_Module *module, const char *path) { - *module = LoadLibraryA(path); + *module = LoadLibraryExA( + path, + NULL, + LOAD_LIBRARY_SEARCH_DEFAULT_DIRS | LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR + ); if (*module == NULL) return OScInternal_Error_Unknown(); return OSc_OK; From 14a87b42ead49d74688dd067ddf370ea5b2788d9 Mon Sep 17 00:00:00 2001 From: Gabriel Selzer Date: Fri, 15 May 2026 16:16:50 -0500 Subject: [PATCH 2/3] Fix typo --- OpenScanLib/src/Module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenScanLib/src/Module.c b/OpenScanLib/src/Module.c index a3c1d0f..50642d9 100644 --- a/OpenScanLib/src/Module.c +++ b/OpenScanLib/src/Module.c @@ -17,7 +17,7 @@ void OScInternal_FileList_Free(ss8str *files) { free(files); } -// Finds all fils under 'path' that have 'suffix'. +// Finds all files under 'path' that have 'suffix'. // Allocates array and element strings and places into 'files'. OSc_RichError *OScInternal_FileList_Create(ss8str **files, const char *path, const char *suffix) { From 5c712cf11d00887859317adecd40d738fac3072a Mon Sep 17 00:00:00 2001 From: Gabriel Selzer Date: Thu, 21 May 2026 09:31:12 -0500 Subject: [PATCH 3/3] Format --- OpenScanLib/src/Module.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/OpenScanLib/src/Module.c b/OpenScanLib/src/Module.c index 50642d9..e4cdd94 100644 --- a/OpenScanLib/src/Module.c +++ b/OpenScanLib/src/Module.c @@ -72,11 +72,9 @@ OSc_RichError *OScInternal_FileList_Create(ss8str **files, const char *path, OSc_RichError *OScInternal_Module_Load(OScInternal_Module *module, const char *path) { - *module = LoadLibraryExA( - path, - NULL, - LOAD_LIBRARY_SEARCH_DEFAULT_DIRS | LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR - ); + *module = LoadLibraryExA(path, NULL, + LOAD_LIBRARY_SEARCH_DEFAULT_DIRS | + LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR); if (*module == NULL) return OScInternal_Error_Unknown(); return OSc_OK;