d2b2a921f1
On Windows we seem to have to load the TestLibrary[AB] test libraries from in same folder the test executable runs. Also removed the empty RemoveDllDirectory, SetDefaultDllDirectories, AddDllDirectory tests and the redundant FreeLibrary test. TestLibrary now works and succeeds on Win32. sadasd
15 lines
243 B
C
15 lines
243 B
C
#include <winpr/spec.h>
|
|
|
|
DECLSPEC_EXPORT int FunctionA(int a, int b);
|
|
DECLSPEC_EXPORT int FunctionB(int a, int b);
|
|
|
|
int FunctionA(int a, int b)
|
|
{
|
|
return (a * b); /* multiply */
|
|
}
|
|
|
|
int FunctionB(int a, int b)
|
|
{
|
|
return (a / b); /* divide */
|
|
}
|