Armin Novak
72ca88f49c
Reformatted to new style
2019-11-07 10:53:54 +01:00
Armin Novak
f01e042211
Code cleanups (strlen, casts, size_t, ...)
2019-10-29 11:58:43 +01:00
asapelkin
82eadad4a4
Fix some static analizer warnings
2019-10-22 15:39:54 +02:00
Armin Novak
2bd43398e8
Fixed sign-compare warning
2019-01-30 18:05:49 +01:00
Armin Novak
0490aeb018
Fixed clang malloc integer overflow warnings.
2017-07-20 09:29:48 +02:00
Armin Novak
99c45405cb
Fixed GetEnvironmentVariable.
2017-03-03 12:43:00 +01:00
Armin Novak
9c64e77a84
Disabled thread local storage on iOS.
...
iOS does not support Thread Local Storage.
Disabling it for now until a solution is found.
Print a compiler warning informing developers about this issue.
2016-10-06 13:43:10 +02:00
Marc-André Moreau
d0f413db12
winpr: initial port to Universal Windows Platform (UWP)
2016-02-05 16:28:45 -05:00
Bernhard Miklautz
c70559d128
winpr API: add EnvironmentBlockToEnvpA
...
* expose EnvironmentBlockToEnvpA
* cleanup includes in process.c
* removed unused "flag" variable in _CreateProcessExA
* make ProcessHandleCloseHandle static
2015-10-23 18:38:42 +02:00
Bernhard Miklautz
6b52a2e5cc
winpr/file: initial regular file support
...
Add initial support for "regular" files. First implemented call is
GetStdHandle to get stdin/stdout/stderr.
2015-09-09 16:47:03 +02:00
Norbert Federa
1eff1a345e
free can handle NULL perfectly fine
2015-05-11 09:07:39 +02:00
Zhang Zhaolong
ea67d8b1bc
libwinpr: fix lost of mergeStrings.
...
Signed-off-by: Zhang Zhaolong <zhangzl2013@126.com>
2015-03-13 10:38:07 +08:00
Zhang Zhaolong
e30d1c0f47
libwinpr: fix incorrect usage of realloc.
...
Signed-off-by: Zhang Zhaolong <zhangzl2013@126.com>
2015-03-11 14:59:56 +08:00
Armin Novak
8640872161
Fixed mixed variable declaration.
2014-11-17 01:42:24 +01:00
Armin Novak
709435d6d7
Fixed memory leak.
2014-11-16 22:47:23 +01:00
Armin Novak
abeb29213f
Fixed memory leak.
2014-11-16 17:21:36 +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
77a3c0ca4a
Fixed use after free.
2014-11-16 15:13:08 +01:00
Marc-André Moreau
c5c9423ccf
winpr: fix Win32 build warnings
2014-11-04 10:44:55 -05:00
Marc-André Moreau
8ef4c14a6d
libwinpr-environment: fix extended functions
2014-10-10 19:16:51 -04:00
Bernhard Miklautz
02c4e261d1
winpr-env: update Get/SetEnvironmentVariableA
...
* set last error to ERROR_ENVVAR_NOT_FOUND in GetEnvironmentVariableA
if not found
* remove unused variables in SetEnvironmentVariableA
* add more test cases
2014-04-17 11:48:50 +02:00
Martin Haimberger
a6c34c114e
using setenv instead of putenv to prevent memleaks
2014-04-11 02:17:43 -07:00
Bernhard Miklautz
297247042d
winpr-env: fix in GetEnvironmentVariableEBA
...
* also fix cases where the provided env block is NULL
2014-02-20 18:29:16 +01:00
Bernhard Miklautz
591a8192e0
winpr-env: fix in GetEnvironmentVariableEBA
...
GetEnvironmentVariableEBA didn't do exact matching of the requested variable name. If a variable
with similar but shorter name was set in the environment block it was returned.
For example if HOME was set in the environment block and HOMEX was requested the value of HOME was
returned.
2014-02-14 11:12:21 +01:00
Bernhard Miklautz
909800eca0
winpr: fixed problems Set/GetEnvironmentVariableEBA
...
* valgrind: fixed invalid read
* invalid or damaged environment blocked caused endless loop
* envblock created in SetEnvironmentVariableEBA lacked a trailing '\0'
which could lead to a damaged environment block
2014-02-13 14:31:11 +01:00
Marc-André Moreau
62199fc46a
Merge branch 'master' of github.com:FreeRDP/FreeRDP
2013-12-10 11:54:03 -05:00
Bernhard Miklautz
2b6b4a6685
updated file headers
2013-12-04 11:44:22 +01:00
Marc-André Moreau
cea8c08328
ifreerdp: fix iOS/OSX platform detection
2013-12-03 15:19:58 -05:00
Marc-André Moreau
d5f18e88cc
libwinpr-environment: fix usage of environ on OS X
2013-12-03 00:52:02 -05:00
Martin Haimberger
8479462b5e
changed the interface of SetEnvironmentVariableEBA
2013-10-23 03:43:06 -07:00
Martin Haimberger
fdacd898f5
MergeEnvironmentStrings works also for a null original env
2013-10-23 03:00:22 -07:00
Martin Haimberger
97ef519a54
added Set/GetEnvironmentVariableEBA
...
did some bugfixing within the MergeEnvironmentVariable
added Tests
2013-10-23 02:27:31 -07:00
Martin Haimberger
87ce6f28cf
added merge function for environmentblocks
2013-10-23 00:58:33 -07:00
Marc-André Moreau
3d2754e8ed
libwinpr-environment: implement required functions for CreateProcess
2013-09-23 14:44:59 -04:00
Marc-André Moreau
edf6e7258d
libwinpr-path: add path detection functions
2013-03-22 00:42:09 -04:00
Marc-André Moreau
90ffa6ea86
libwinpr: stubbed Path API
2012-09-22 22:02:55 -04:00