Armin Novak
44904ad5d2
Fixed a race condition at thread creation
...
The thread structure was incorrectly updated after the thread
function was already running. This caused a race condition with
thread exiting. When the thread function returned before the structure
was correctly updated, the exit routine cleaned up the handle as
it was incorrectly marked not started.
2015-01-16 11:26:31 +01:00
Armin Novak
052b4b4365
Fixed SetLastError test.
...
WLog initialisation checks environment variables, which may not exist
and therefore set an error. So initialise it before doing tests.
2015-01-16 10:45:34 +01:00
Bernhard Miklautz
c70293aa60
Fix clang compiler warnings
2015-01-16 00:41:57 +01:00
Marc-André Moreau
51554ff16c
channels: patch rdpdr/smartcard valgrind leaks, fix hang on disconnect
2014-12-28 14:56:13 -05:00
Marc-André Moreau
ee5a354328
freerdp: more valgrind fixes
2014-12-27 15:34:45 -05:00
Marc-André Moreau
6c2ebb2b58
channels: redirection valgrind fixes
2014-12-27 13:50:50 -05:00
Marc-André Moreau
9ebc67ba02
channels/smartcard: cleanup SCardControl
2014-12-22 16:25:59 -05:00
Marc-André Moreau
0625be2720
channels/smartcard: fix SCardGetAttrib SCARD_AUTOALLOCATE support
2014-12-22 13:28:16 -05:00
Marc-André Moreau
08c8c6f285
channels/cliprdr: fix empty clipboard format lists, server-side locking
2014-12-20 13:07:30 -05:00
Marc-André Moreau
544c2f3e45
Merge pull request #2266 from Vinche59/smartcard
...
SmartCard
2014-12-14 11:56:01 -05:00
Vincent Sourin
719e5c9cdb
Determine OSX Version ... only on OSX
2014-12-14 15:15:33 +01:00
Vincent Sourin
8a028f78e2
* Determine OS X Version at runtime
2014-12-13 05:30:44 -08:00
Marc-André Moreau
aa23c4eaaa
libfreerdp-core: fix random TS Gateway disconnects with async modes
2014-12-12 09:08:39 -05:00
Marc-André Moreau
cc2321d359
libfreerdp-core: fix leak and use after free in tsg ListDictionary usage
2014-12-11 17:08:22 -05:00
Marc-André Moreau
d8e10ac04a
freerdp: patch leaks reported by valgrind when using TS Gateway
2014-12-11 11:25:34 -05:00
Vincent Sourin
956cece54b
* Correct detection of Mac OS X Yosemite Version
2014-12-09 22:14:06 +01:00
Vincent Sourin
64ff9ee1b6
SmartCard
...
* Check for NULL parameters in PCSC_ConvertReaderNameToWinSCard (Issue #2184 )
* Remove masking of dwEventState as it is not needed under Linux and MacOSX and it helps in ThinLinc environment
* Workaround for Mac OS X Yosemite (10.10) SCardStatus Bug (Issue #2184 )
* Since Mac OS Tiger (10.5.6), Apple introduced new function for SCardControl calls named SCardControl132(), the old SCardControl doesn't work (cf. https://opensource.apple.com/source/SmartCardServices/SmartCardServices-55111/src/PCSC/winscard_clnt.c )
2014-12-09 20:14:57 +01:00
Armin Novak
4d8c91b0fe
Fixed missing declarations.
2014-12-07 01:15:49 +01:00
Armin Novak
8a6c4396b2
Fixed memory leak.
2014-12-07 01:04:30 +01:00
Armin Novak
f676c48a2f
Fixed broken NULL pointer check.
2014-12-07 00:21:28 +01:00
Marc-André Moreau
f2267a2277
libwinpr-clipboard: fix memory corruption and leaks
2014-12-04 13:19:10 -05:00
Marc-André Moreau
75e0e84130
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2014-12-04 10:00:10 -05:00
Martin Fleisz
441632310a
Merge pull request #2110 from akallabeth/winpr_backtrace_windows
...
Winpr backtrace windows
2014-12-04 15:03:37 +01:00
Armin Novak
eafc49b154
Using fixed size debug string buffers now.
2014-12-04 14:54:08 +01:00
Marc-André Moreau
6ccce86140
Merge branch 'master' of github.com:FreeRDP/FreeRDP
...
Conflicts:
winpr/libwinpr/thread/thread.c
2014-12-03 10:10:50 -05:00
Martin Haimberger
7897de057b
fixed compiler warning
2014-12-02 00:36:46 -08:00
Martin Haimberger
12aad63f4d
fixed win32 build
2014-12-02 00:27:30 -08:00
Martin Haimberger
fa6d551676
changed processhandle handling to new system
2014-12-02 00:08:10 -08:00
Martin Haimberger
128458d380
fixing memoryleak by introducing a nonehandle
...
In CreateProcess the non functional thread
handle was leaked.
2014-12-01 23:53:58 -08:00
Marc-André Moreau
0818846d7c
winpr: fix build warnings
2014-11-21 15:12:49 -05:00
Marc-André Moreau
9258ecca37
libwinpr-clipboard: improve robustness
2014-11-20 12:08:01 -05:00
Marc-André Moreau
871339da88
Merge branch 'master' of github.com:awakecoding/FreeRDP
...
Conflicts:
winpr/libwinpr/thread/thread.c
2014-11-20 11:51:18 -05:00
Marc-André Moreau
2afcac7838
libwinpr-thread: fix non-blocking internal pipe-based event on OS X
2014-11-20 11:48:02 -05:00
Marc-André Moreau
8a7a71a7b6
Merge pull request #2213 from akallabeth/wlog_callback_appender
...
Wlog callback appender
2014-11-17 09:41:58 -05:00
Armin Novak
8640872161
Fixed mixed variable declaration.
2014-11-17 01:42:24 +01:00
Armin Novak
c3f47128db
Fixed header include.
2014-11-17 01:39:45 +01:00
Armin Novak
6ef98e2aa7
Fixed null pointer dereference.
2014-11-17 01:20:46 +01:00
Armin Novak
b920f9a081
Fixed null pointer dereference.
2014-11-17 00:50:15 +01:00
Armin Novak
54224d4155
Fixed memory leak.
2014-11-17 00:07:58 +01:00
Armin Novak
83f6b24b16
Fixed API nonnull warning.
2014-11-16 23:58:39 +01:00
Armin Novak
51cc567dc6
Fixed typo.
2014-11-16 23:52:22 +01:00
Armin Novak
2e1c2555a2
Fixed typo.
2014-11-16 23:50:46 +01:00
Armin Novak
d525999a06
Fixed allocation size warning.
2014-11-16 23:43:18 +01:00
Armin Novak
d225b97078
Fixed allocation size warning.
2014-11-16 23:42:30 +01:00
Armin Novak
28220d5b9f
Fixed allocation size warning.
2014-11-16 23:41:28 +01:00
Armin Novak
a1761d8a7b
Fixed memory leaks.
2014-11-16 23:10:33 +01:00
Armin Novak
55e455f1ab
Fixed memory leaks.
2014-11-16 22:50:50 +01:00
Armin Novak
709435d6d7
Fixed memory leak.
2014-11-16 22:47:23 +01:00
Armin Novak
be3df80c9c
Fixed memory leak.
2014-11-16 22:45:09 +01:00
Armin Novak
e256e14cc4
Fixed bad sizeof in calloc.
2014-11-16 22:43:11 +01:00
Armin Novak
abeb29213f
Fixed memory leak.
2014-11-16 17:21:36 +01:00
Armin Novak
831b74d519
Fixed memory leak.
2014-11-16 17:07:48 +01:00
Armin Novak
e77a4fedc2
Fixed memory leak.
2014-11-16 17:06:42 +01:00
Armin Novak
7b9bf1a504
Fixed uninitialized variable.
2014-11-16 17:02:36 +01:00
Armin Novak
b7d5bf49f8
Fixed NULL pointer dereference.
2014-11-16 16:53:55 +01:00
Armin Novak
fb5d20f338
Fixed NULL pointer dereference.
2014-11-16 16:51:04 +01:00
Armin Novak
2671482458
Fixed Stack_Free.
2014-11-16 16:48:50 +01:00
Armin Novak
cd1782efaa
Fixed NULL pointer dereference.
2014-11-16 16:47:38 +01:00
Armin Novak
37facc0d44
Fixed memory leak.
2014-11-16 16:05:01 +01:00
Armin Novak
b9908af64a
Fixed memory leaks.
2014-11-16 16:02:28 +01:00
Armin Novak
53450b6423
Checking setgid before calling initgroups now.
2014-11-16 15:59:26 +01:00
Armin Novak
9339411c9b
Fixed memory leak.
2014-11-16 15:53:39 +01:00
Armin Novak
45896e7a61
Fixed memory leak.
2014-11-16 15:51:45 +01:00
Armin Novak
b7304f16b8
Fixed memory leak.
2014-11-16 15:47:57 +01:00
Armin Novak
9ab5f4c222
Fixed memory leak.
2014-11-16 15:44:02 +01:00
Armin Novak
58d1853de7
Fixed missing return check.
2014-11-16 15:25:10 +01:00
Armin Novak
51cb07b0f4
Fixed use after free.
2014-11-16 15:21:13 +01:00
Armin Novak
77a3c0ca4a
Fixed use after free.
2014-11-16 15:13:08 +01:00
Armin Novak
cf5b9a75b8
Fixed memory leak
2014-11-16 15:03:20 +01:00
Armin Novak
7756cfb7a4
Fixed memory leaks.
2014-11-16 14:56:08 +01:00
Armin Novak
f5a78d9c98
Fixed use after free.
2014-11-16 14:44:30 +01:00
Armin Novak
643a309537
Fixed memory leak.
2014-11-16 14:40:30 +01:00
Armin Novak
1b6cb6349e
Added unit test for callback wlog appender.
2014-11-16 13:59:12 +01:00
Armin Novak
7697eafa02
Fixed callback appender setup.
2014-11-16 13:59:04 +01:00
Armin Novak
8d4589b1e1
Replaced fprintf error messages with WLog.
2014-11-16 12:21:38 +01:00
Armin Novak
6de22298d0
Added callback appender for wlog.
2014-11-16 12:20:48 +01:00
Marc-André Moreau
496ce10637
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2014-11-15 12:37:29 -05:00
Martin Fleisz
7acc61e3f6
Merge pull request #2199 from akallabeth/backtrace_fix
...
Fixed type of stack trace variables.
2014-11-13 16:11:08 +01:00
Emmanuel Ledoux
096159054b
winpr-comm: ignore errors on TIOCGICOUNT during the port initialization but the permissive mode must be on afterwards.
2014-11-13 19:54:32 +01:00
Armin Novak
041c26eff6
Fixed mixed variable declaration.
2014-11-12 09:16:55 +01:00
Armin Novak
16f9f34b52
Removed assert, breaking build on visual studio.
2014-11-12 09:16:55 +01:00
Armin Novak
c39fbcfacb
Fixed scope of variable declarations, MSVC does not like mixed variable declaration.
2014-11-12 09:16:55 +01:00
Armin Novak
56f087dfbc
Fixed commented include.
2014-11-12 09:16:55 +01:00
Armin Novak
6c4f013bd9
Enhanced debug output, fixed missing includes.
2014-11-12 09:16:55 +01:00
Armin Novak
cbf70a3d75
Fixed missing include in unit test.
2014-11-12 09:16:55 +01:00
Armin Novak
f09aec878e
Added unit test for backtrace.
2014-11-12 09:16:54 +01:00
Armin Novak
3830a9f580
Added windows implementation of backtrace.
2014-11-12 09:16:54 +01:00
Armin Novak
2d7311b253
Fixed type of stack trace variables.
2014-11-11 21:00:03 +01:00
Marc-André Moreau
22260600fa
libwinpr-input: add missing VK_DECIMAL mapping of OS X keycode mapping of ABNT2 keyboard
2014-11-11 12:39:41 -05:00
Marc-André Moreau
367ceff02c
libwinpr-smartcard: revert minor change from pull request #2195
2014-11-11 12:00:37 -05:00
Marc-André Moreau
d4bdf52b07
libwinpr-smartcard: re-enable SCardGetStatusChange status filtering
2014-11-11 11:46:59 -05:00
Marc-André Moreau
68ee5df7d9
winpr: fix build warnings
2014-11-11 11:21:34 -05:00
Marc-André Moreau
a48ed7239d
Merge branch 'master' of github.com:FreeRDP/FreeRDP
...
Conflicts:
libfreerdp/core/update.c
2014-11-11 09:55:48 -05:00
Marc-André Moreau
b77a3bc1bc
Merge pull request #2195 from Vinche59/master
...
Implementation of SCARD_IOCTL_LOCATECARDSBYATRA & Modification to make Smartcard reader with PinPad work
2014-11-11 09:29:45 -05:00
Martin Fleisz
6cd55a591d
Merge pull request #1964 from akallabeth/thread-wait-support
...
Implemented thread handling for WaitForMultipleObjects.
2014-11-11 10:50:55 +01:00
Vinche
d427faf5c6
Cleaning Code
2014-11-10 23:51:34 +01:00
Vinche
fdb95c712b
Implementation for Smartcard Reader with Pin Pad
2014-11-10 23:40:22 +01:00
Marc-André Moreau
71b8bfac30
libwinpr-smartcard: fix PCSC structure padding that was recently broken
2014-11-10 11:31:28 -05:00
Armin Novak
ff3fcc24c1
Fixed unlocking if pthread_join fails.
2014-11-10 10:24:32 +01:00
Vinche
69766de29f
Add comments to modifications
2014-11-09 23:02:12 +01:00
Vinche
bbff8db75f
Add comments to modifications
2014-11-09 23:00:41 +01:00
Vinche
2708a8de5c
first commit
2014-11-09 22:42:35 +01:00
Marc-André Moreau
c5c9423ccf
winpr: fix Win32 build warnings
2014-11-04 10:44:55 -05:00
Armin Novak
017e4a323e
Locking thread until joined now, preventing multiple joins and race conditions.
2014-11-03 09:29:35 +01:00
Martin Fleisz
0be28ba0f6
Merge pull request #1965 from akallabeth/dynamic-addin-naming
...
Dynamic channel library naming
2014-10-31 13:42:16 +01:00
Martin Fleisz
d58c6de93c
Merge pull request #2134 from akallabeth/windows_version_information
...
Windows version information
2014-10-31 12:23:11 +01:00
Armin Novak
5bf25fd87c
Fixed missing includes and typo.
2014-10-27 11:45:39 +01:00
Armin Novak
8f98f28ce8
Fixed merge errors.
2014-10-27 11:39:02 +01:00
Armin Novak
a6eff65259
Fixed ExitThread, now running pthread_exit and setting event.
2014-10-27 11:28:13 +01:00
Armin Novak
c6ed95d1bf
Fixed typo
2014-10-27 11:28:13 +01:00
Armin Novak
02a4d77da1
Setting exited flag in TerminateThread now to allow setting return code.
2014-10-27 11:28:12 +01:00
Armin Novak
7ef2bd3ca0
Added joined flag.
2014-10-27 11:28:12 +01:00
Armin Novak
7acdbdaa85
Error messages now prefixed with function name.
...
Implemented bWaitAll for WaitForMultipleObjects.
pthread_join now only called on first wait event, later ones skip this to avoid undefined behavior.
2014-10-27 11:28:11 +01:00
Armin Novak
c5bb6125c1
Added additional tests for WaitForSingleObject and WaitForMultipleObjects.
2014-10-27 11:23:18 +01:00
Armin Novak
5122ce939a
Added funcion name to debug messages.
...
Fixed setting of started flag for threads.
pthred_exit now used correct return value argument.
Return value now also set when terminating thread.
2014-10-27 11:23:18 +01:00
Armin Novak
56ae609943
Removed WaitForSingleObject in reset_event, joining thread when not allowed.
2014-10-27 11:23:17 +01:00
Armin Novak
8a352c6f63
Fixed thread cleanup, now saving state of started flag, setting event and
...
then cleaning up the thread resources.
2014-10-27 11:23:17 +01:00
Armin Novak
f80f5621ac
Fixed thread handle cleanup, checking for resource cleanup now before resetting flags.
2014-10-27 11:23:17 +01:00
Armin Novak
8de2868281
Preferring exit code from ExitThread now over thread function return.
2014-10-27 11:23:16 +01:00
Armin Novak
3d7b65a430
Now using thread_launcher function to properly clean up thread resources at exit.
2014-10-27 11:23:15 +01:00
Armin Novak
c304f457cf
Implemented thread handling for WaitForMultipleObjects.
...
Implemented thread specific functions.
2014-10-27 11:23:15 +01:00
Marc-André Moreau
02646b349f
Merge branch 'master' of github.com:FreeRDP/FreeRDP
...
Conflicts:
libfreerdp/core/gcc.c
2014-10-25 10:29:06 -04:00
Marc-André Moreau
ce7302a999
wfreerdp: cleanup clipboard
2014-10-22 22:32:55 -04:00
Marc-André Moreau
83ecddd6c1
xfreerdp: replace cliprdr to wire format conversion
2014-10-17 20:40:11 -04:00
Marc-André Moreau
e8312e2dac
libwinpr-clipboard: add more synthetic clipboard formats
2014-10-17 19:14:54 -04:00
Marc-André Moreau
0e4659403f
libwinpr-clipboard: add basic clipboard synthesizers
2014-10-17 18:23:07 -04:00
Marc-André Moreau
c27888ed72
libwinpr-clipboard: initial clipboard synthetic format support
2014-10-17 16:45:36 -04:00
Marc-André Moreau
d98ce1a819
libwinpr-clipboard: initial commit
2014-10-17 15:19:05 -04:00
Armin Novak
3d28c9dbf1
Fixed sspi_CopyAuthIdentity, now checking source struct, if it is ANSI encoded.
2014-10-17 11:43:41 +02:00
Marc-André Moreau
334dec3c1f
winpr: add pragma pack, bitmap + clipboard definitions
2014-10-16 21:45:47 -04:00
Marc-André Moreau
f6b3b24c22
winpr: add new line ending, utf16 byte order swap functions
2014-10-16 18:07:44 -04:00
Marc-André Moreau
1d47b16f3c
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2014-10-14 20:59:37 -04:00
Marc-André Moreau
e0a063a3f9
libwinpr-wtsapi: improve Win32 winsta.dll-based channel API
2014-10-14 19:25:41 -04:00
Marc-André Moreau
f837ba3caa
libwinpr-wtsapi: implement overlapped i/o event handle Win32 wrapper
2014-10-14 15:23:07 -04:00
Marc-André Moreau
398eab35d4
libwinpr-wtsapi: add Win32 winsta.dll-based VC implementation
2014-10-13 10:55:11 -04:00
Marc-André Moreau
020436db79
libwinpr-handle: fix dummy DuplicateHandle implementation
2014-10-11 12:34:45 -04:00
Marc-André Moreau
8ef4c14a6d
libwinpr-environment: fix extended functions
2014-10-10 19:16:51 -04:00
Marc-André Moreau
11ae267518
libfreerdp-core: expose new API to allow FreeRDS virtual channel hooking
2014-10-10 16:11:42 -04:00
Marc-André Moreau
8865077b40
libwinpr-winsock: minor improvements
2014-10-09 20:27:42 -04:00
Marc-André Moreau
b01ef89b3d
libwinpr-utils: improve HashTable flexibility, add proper string support
2014-10-09 16:46:55 -04:00
Armin Novak
89bb28adb2
Fixed setting of RV_VERSION_PATCH, now BUILD_NUMBER is used for every library.
...
Executable names are now correctly set, using CMAKE_EXECUTABLE_SUFFIX now.
Fixed version defines for winpr executables.
2014-10-09 16:18:35 +02:00
Marc-André Moreau
06c1810c8a
libwinpr-rpc: fix RpcStringFree
2014-10-08 21:46:46 -04:00
Daryl Poe
af5462eb7b
correct check for lzcnt cpu capability
2014-10-06 13:50:49 -06:00
Armin Novak
5364a834c4
Added windows version information to build.
2014-10-03 15:17:40 +02:00
Marc-André Moreau
cdbfc51daf
libwinpr-utils: add .ini write support
2014-10-02 20:16:30 -04:00
Marc-André Moreau
d5cbadee9d
libwinpr-utils: improve .ini file parser
2014-10-02 18:45:53 -04:00
Marc-André Moreau
abd87ace55
rdtk: initial commit
2014-09-29 16:08:08 -04:00
Marc-André Moreau
c5a0c7e97a
libwinpr-utils: add simple image loading/writing test
2014-09-28 11:14:30 -04:00
Marc-André Moreau
1c34583407
libwinpr-utils: add png support
2014-09-28 11:02:39 -04:00
Marc-André Moreau
bbf4732470
Merge branch 'master' of github.com:FreeRDP/FreeRDP
...
Conflicts:
libfreerdp/gdi/gdi.c
2014-09-25 10:34:56 -04:00