FreeRDP/winpr/libwinpr/library/test/TestLibraryB/TestLibraryB.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
240 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); /* add */
}
int FunctionB(int a, int b)
{
return (a - b); /* subtract */
}