Armin Novak
a1ee97c154
Fixed GetModuleFileNameW.
2019-04-05 09:14:35 +02:00
Armin Novak
1d87fdc803
Implemented GetModuleFileNameW
2019-04-05 09:14:35 +02:00
Armin Novak
ebb93a1273
Improved implementation of LoadLibrary functions.
2019-04-05 09:14:35 +02:00
Armin Novak
9566ae0e90
Fixed mac compilation warnings.
2019-02-21 17:30:12 +01:00
Armin Novak
86f08981ef
Fixed warnings of uninitialized struct values.
2018-10-24 13:25:18 +02:00
Armin Novak
62c1696d4c
Removed use of unchecked sprintf
2018-08-27 14:34:42 +02:00
Armin Novak
b0289e3ed8
Fixed cast warnings.
2017-04-10 10:39:01 +02:00
pentagra
df2b5c9cdf
ifdef's for Cygwin compilation
2017-02-10 18:06:20 +03:00
Norbert Federa
f71b6b46e8
fix string format specifiers
...
- fixed invalid, missing or additional arguments
- removed all type casts from arguments
- added missing (void*) typecasts for %p arguments
- use inttypes defines where appropriate
2016-12-16 13:48:43 +01:00
Norbert Federa
7a68eebb03
cmake: remove some void statements and fix winpr source group
2016-06-15 13:54:31 +02:00
Norbert Federa
581c000435
winpr/library: fix GetModuleFileName and tests
...
- Use correct SetLastError values in GetModuleFileName
- Fix wrong return codes in GetModuleFileName
- Build the TestLibraryA/TestLibraryB libraries always shared and
put them in the test output directory
- TestLibraryGetModuleFileName always returned success
- Improve TestLibraryGetModuleFileName to also check last error values
and insufficient buffer sizes
- Change TestLibraryGetProcAddress and TestLibraryLoadLibrary to load
the TestLibrary from the test executable's directory
2016-06-10 13:12:08 +02:00
Norbert Federa
f2c825bb76
winpr: fix some tests
...
TestNtCreateFile, TestPipeCreateNamedPipeOverlapped
- These tests are currently only expected to succeed on _WIN32
- Also reflect the reverse meaning of this fact in the return values
TestSynchWaitableTimer, TestSynchWaitableTimerAPC:
- These tests are currently expected to fail on __APPLE__
- Also reflect the reverse meaning of this fact in the return values
This logic makes sure that we don't forget to fix the tests if the
corresponding WinPR implementations are fixed.
TestLibrary:
- TestLibraryA and TestLibraryB must always get built as shared libraries
2016-06-07 17:20:56 +02:00
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
Marc-André Moreau
ceefc4b099
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2016-03-07 10:19:50 -05:00
Armin Novak
c182be093d
Removed module.def from build config.
2016-02-29 15:24:07 +01:00
Armin Novak
68c402ac58
Removed windows module.def files.
...
All symbols exported from libraries are declared
using *_API defines.
2016-02-29 15:18:47 +01:00
Marc-André Moreau
d0f413db12
winpr: initial port to Universal Windows Platform (UWP)
2016-02-05 16:28:45 -05:00
Bernhard Miklautz
bf73f4e4f1
Fix unchecked strdups
...
* add missing checks
* adapt function return values where necessary
* add initial test for settings
2015-06-22 19:09:59 +02:00
Bernhard Miklautz
a8c44f15c0
winpr: small fixes and cleanups
...
Update the pull request and integrate the latest comments and
suggestions.
* TestLibrary*: fix typo in error message
* TestPipeCreateNamedPipeOverlapped: free possibly allocated memory
* smartcard_pcsc.c: format fix
* process.c: add missing NULL check
* MessageQueue.c: delete possibly initialized critical section on error
2015-04-08 11:34:37 +02:00
Bernhard Miklautz
850de59b55
winpr: add checks for *alloc
...
Add missing checks if memory allocation was successful. Also adapt
caller(s) when possible.
2015-04-08 11:34:37 +02:00
Armin Novak
e0fe6d58b8
Removing platform specific library prefix for library tests.
2014-09-17 11:27:11 +02:00
Armin Novak
059374457d
Removed library prefix override.
2014-09-17 11:27:11 +02:00
Armin Novak
7e3a1b3073
Now using macro to generate module specific log tag.
2014-09-09 16:32:04 +02:00
Armin Novak
28ece6bb46
Replaced stdio logging with WLog
2014-09-09 16:31:46 +02:00
Bernhard Miklautz
6a49bcfe40
winpr: always build "monolitic"
...
winpr is now always build as single library.
The build option MONOLITHIC_BUILD doesn't influence this behavior anymore.
The only exception is winpr-makecert-tool which is still build as extra
library.
This obsoletes complex_libraries for winpr.
2014-07-10 11:10:58 +02:00
Marc-André Moreau
b67288868d
Merge branch 'master' of github.com:awakecoding/FreeRDP into fdsapi
2014-04-27 19:18:23 -04:00
Bernhard Miklautz
b817e92e5e
cmake: mark required libraries for export
2014-04-23 10:16:02 +02:00
Marc-André Moreau
2c7ab4be46
libwinpr-wnd: stub core functions
2014-03-18 14:43:25 -04:00
Marc-André Moreau
bb5c5dcaf0
libwinpr-wtsapi: start adding support for dynamically loaded FreeRDS-provided WTSAPI implementation
2014-03-01 00:32:23 -05:00
Marc-André Moreau
f17a36f84c
libwinpr-library: port GetModuleFileName to Mac OS X
2013-11-11 17:25:59 -05:00
Marc-André Moreau
8cbb7f42da
libwinpr-library: add GetModuleFileName implementation for Linux
2013-11-07 13:57:05 -05:00
Marc-André Moreau
55565e056c
freerdp: export targets
2013-10-28 23:06:39 -04:00
Hardening
7701c9d934
Replace printf(...) by fprintf(stderr, ...)
2013-03-28 23:06:34 +01:00
Marc-André Moreau
925eb59bf1
libfreerdp-common: refactoring of addin loader
2012-11-17 22:03:04 -05:00
Marc-André Moreau
9a6d405a54
libwinpr-library: fix unit tests
2012-10-25 07:42:06 -04:00
Marc-André Moreau
d251538252
libwinpr: fix build on linux
2012-10-18 22:05:06 -04:00
Marc-André Moreau
2f1711c506
libwinpr-path: make tests pass on Windows
2012-10-18 21:11:12 -04:00
Marc-André Moreau
1ee21f558e
libwinpr: fix build of tests on Windows
2012-10-18 17:30:57 -04:00
Marc-André Moreau
d5b635c9e8
libwinpr-library: improve library tests
2012-10-18 16:58:27 -04:00
Marc-André Moreau
dd23dd1aee
ctest: change default output test path
2012-10-18 15:37:00 -04:00
Marc-André Moreau
229438dbf3
cmake: fix monolithic test build
2012-10-13 17:38:02 -04:00
Marc-André Moreau
06fa85f31c
cmake: refactoring of MONOLITHIC_BUILD
2012-10-13 17:30:59 -04:00
Marc-André Moreau
2ee9f23a8e
cmake: revert back to standard CTest BUILD_TESTING option
2012-10-13 09:50:02 -04:00
Marc-André Moreau
c26a623ed1
cmake: rename BUILD_TESTING to TEST_BUILD
2012-10-12 16:04:46 -04:00
Marc-André Moreau
40eea7c76b
cmake: rename WITH_MONOLITHIC_BUILD to MONOLITHIC_BUILD
2012-10-08 22:55:06 -04:00
Marc-André Moreau
7891e0a765
winpr: stubbed pipe module, added some test stubs
2012-10-07 16:13:30 -04:00
Marc-André Moreau
fbd2f360e9
winpr: fix compilation on Linux
2012-10-05 14:45:54 -04:00
Marc-André Moreau
56ea938fbf
libwinpr: wrote more tests
2012-10-04 23:19:05 -04:00
Marc-André Moreau
bf26079d3f
libwinpr: added tests and fix InterlockedCompareExchange64 on Windows XP
2012-10-04 18:57:32 -04:00
Marc-André Moreau
fcc9f91302
cmake: add support for solution groups
2012-09-30 22:58:59 -04:00