Skip to content

Commit ea986f1

Browse files
committed
LoadLibraryA should be used instead of relying on legacy mapping macros
1 parent 1736eac commit ea986f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/solvers/funcadd1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ file_kind(const char *name) /* 1 == regular file, 2 ==> directory; else 0 */
130130
#define SLASH '\\'
131131
char afdll[] = "\\amplfunc.dll";
132132
typedef HINSTANCE shl_t;
133-
#define dlopen(x,y) LoadLibrary(x)
133+
#define dlopen(x,y) LoadLibraryA(x)
134134
#define find_dlsym(a,b,c) (a = (Funcadd*)GetProcAddress(b,c))
135135
#define dlclose(x) FreeLibrary((HMODULE)x)
136136
#define NO_DLERROR

src/solvers2/funcadd1.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ file_kind(const char *name) /* 1 == regular file, 2 ==> directory; else 0 */
130130
#define SLASH '\\'
131131
char afdll[] = "\\amplfunc.dll";
132132
typedef HINSTANCE shl_t;
133-
#define dlopen(x,y) LoadLibrary(x)
133+
#define dlopen(x,y) LoadLibraryA(x)
134134
#define find_dlsym(a,b,c) (a = (Funcadd*)GetProcAddress(b,c))
135135
#define dlclose(x) FreeLibrary((HMODULE)x)
136136
#define NO_DLERROR

0 commit comments

Comments
 (0)