FreeRDP/winpr/libwinpr/library/test/TestLibraryA/TestLibraryA.c
Norbert Federa d2b2a921f1 winpr/library: fix win32 test and some cleanup
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
2016-05-27 14:34:41 +02:00

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 */
}