Bernhard Miklautz
0f5e7c60a7
winpr/file: don't close stdin/stdout/stderr
...
If the handle is closed stdin/stdout/stderr should be left open.
2015-09-09 17:07:40 +02:00
Bernhard Miklautz
8091530779
winpr/file: fix ios build
...
comm is only build on linux.
2015-09-09 17:07:13 +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
Bernhard Miklautz
204ae5462a
winpr/file: refactoring
...
The used method for initalizing and registering the handle creators
had certain disadvantages like that it was necessary to have the creators
initialized before the first call to CreateFile. In case of comm it
wouldn't have been possible to open an comm port without calling any
other call related function first.
Now the handle creators are initialized the first time CreateFile is
called. This way it is also possible to ensure a certain order of the
handler invocations.
This commit also splits out the client side named pipe code from
the generic file handling (now called generic.c instead of file.c) and
uses the new handle creator infrastructure to register.
2015-09-09 15:48:59 +02:00
Bernhard Miklautz
4626f17cf2
Merge pull request #2868 from nfedera/fix-inverted-pointer-colors
...
improve handling of inverted pointer colors
2015-09-07 11:42:07 +02:00
Bernhard Miklautz
868add7a51
Merge pull request #2873 from mfleisz/makecert_change
...
makecert: Remove key usage attribute
2015-09-07 11:15:51 +02:00
Martin Fleisz
899d0874b8
makecert: Remove key usage attribute
...
The original makecert tool won't add this tribute to a generated
certificate. Adding this attribute might cause problems when using the
certificate with other apps (i.e. Qt SSL).
2015-09-07 10:43:19 +02:00
Hardening
aca347e3c0
Merge pull request #2872 from akallabeth/recording_fix
...
Fixed error checking and recording reset.
2015-09-07 10:26:34 +02:00
MartinHaimberger
d971116457
Merge pull request #2765 from akallabeth/connect_abort
...
Connect abort and unified TCP connect
2015-09-07 10:05:24 +02:00
Armin Novak
d07875b7ea
Fixed error checking and recording reset.
2015-09-07 09:25:48 +02:00
Armin Novak
4d77f2a4c8
Fixed CreateProcess argument initialisation.
2015-09-05 18:55:08 +02:00
Armin Novak
91d318ba7b
Enable RFX for test connection, now required by sample server.
2015-09-05 17:00:27 +02:00
Armin Novak
f7a11a0ed8
Resetting abortEvent on disconnect to avoid race during connect.
2015-09-05 16:26:46 +02:00
Armin Novak
01496f474f
Fixed error handling for rdp_client_connect fail.
2015-09-05 16:26:29 +02:00
Armin Novak
7d8ab23877
WSAEvent fixes ported from realjiangms pull 2870.
2015-09-05 15:18:01 +02:00
Armin Novak
188fe4ed2b
Removed rdp disconnect, using unified abortEvent instead.
2015-09-05 14:57:30 +02:00
Bernhard Miklautz
17834af7bb
Merge pull request #2869 from peterh/negorigin
...
X11 /app: Fix drawing with negative window origin
2015-09-04 17:20:17 +02:00
Peter Harris
769ac2d35f
Fix drawing with negative window origin
...
Since REGION16 uses unsigned values, when appWindow->x or appWindow->y
is negative, the region will have a very large left or top value.
Avoid this problem by clamping to 0 before casting to an unsigned value.
2015-09-03 18:48:42 -04:00
Norbert Federa
1791d42a5d
improve handling of inverted pointer colors
2015-09-03 16:50:41 +02:00
Norbert Federa
72d901454c
Merge pull request #2865 from akallabeth/h264_ignore_errors
...
[H264] ignore decoder errors
2015-09-03 14:42:36 +02:00
Martin Fleisz
607dfe298a
Merge pull request #2867 from akallabeth/channel_error_reset
...
Resetting channel error on freerdp_connect.
2015-09-03 14:22:40 +02:00
Armin Novak
3b8043264f
Resetting channel error on connect.
2015-09-03 13:46:17 +02:00
Armin Novak
551eca246b
Ignoring H264 decompression failures.
...
When connecting to windows 8.1 machines the remote RDP server
implementation sometimes sends invalid H264 data. To avoid client
disconnections ignore the broken updates.
2015-09-03 12:11:15 +02:00
Armin Novak
e345feb5c1
Generalized rdpgfx_decode to work with all codecs.
2015-09-03 12:11:15 +02:00
Martin Fleisz
ad4a8623fc
Merge pull request #2861 from llyzs/winmm_volume_fix
...
rdpsnd/winmm: fix SetVolume when device is not opened.
2015-09-02 12:43:11 +02:00
MartinHaimberger
74817efbdb
Merge pull request #2852 from bmiklautz/process_env
...
Update CreateProcess and rfx
2015-09-02 10:09:11 +02:00
Vic Lee
cc1bcb31b8
rdpsnd/winmm: fix SetVolume when device is not opened.
2015-09-02 15:31:40 +08:00
Norbert Federa
2d5e249eff
Merge pull request #2825 from akallabeth/pointer_decoding_fix
...
Fixed color pointer decoding.
2015-09-01 11:09:42 +02:00
Armin Novak
89227b97f0
Ignore AND mask for 32 bit pointer.
2015-09-01 10:53:45 +02:00
Bernhard Miklautz
1f13781fe1
Merge pull request #2855 from akallabeth/memleak_fixes
...
Memleak fixes
2015-08-31 09:50:21 +02:00
Armin Novak
893e7a35a8
Fixed broken cleanup code.
2015-08-31 09:13:15 +02:00
Hardening
2fb232cee9
Merge pull request #2854 from bmiklautz/issue/2853
...
settings: update settings/help to match
2015-08-30 22:31:08 +02:00
Armin Novak
276685263d
Fixed cleanup code.
2015-08-28 11:46:24 +02:00
Armin Novak
5e360ddcb1
Fixed memory leak.
2015-08-28 11:22:21 +02:00
Bernhard Miklautz
05c02da742
settings: update settings/help to match
...
* wallpaper was off but help said "default: on"
* compression is on but help said "default: off"
Fixes #2853
2015-08-28 11:09:38 +02:00
Armin Novak
5cad081cc8
Fixed memory leak.
2015-08-28 11:07:25 +02:00
Armin Novak
26b1f5a914
Fixed memory leak.
2015-08-28 11:06:26 +02:00
Armin Novak
198b70db0e
Fixed memory leak.
2015-08-28 11:05:44 +02:00
Armin Novak
1cedbd5cd1
Fixed memory leak.
2015-08-28 11:01:34 +02:00
Armin Novak
dd9d66a3e6
Fixed NONNULL argument warnings.
2015-08-28 10:59:48 +02:00
Armin Novak
07bba9b623
Fixed NONNULL argument warnings.
2015-08-28 10:58:20 +02:00
Armin Novak
a8cd9e0138
Fixed resource leak.
2015-08-28 10:53:43 +02:00
Armin Novak
f8295a1517
Fixed resource cleanup double free.
2015-08-28 10:51:27 +02:00
Bernhard Miklautz
72f13aeacb
CreateProcess: add stdin/out/err redirection
...
When launching a new process stdin/stdout/stderr can be redirected by
passing the corresponding HANDLEs in the passed lpStartupInfo structure.
This is required for example if a pipe should be used as stdin/stdout.
If set in lpStartupInfo the file descriptor of the passed handle is
now used. The test was updated accordingly.
2015-08-28 10:41:23 +02:00
Bernhard Miklautz
c0d1f5bac1
codec/rfx: update comment and remove WLog_ERR
...
With revision 17.0 of [MS-RDPRFX] the behavior when numRects == 0 is
documented.
This commit updates the comment and removes the error logging.
2015-08-28 10:36:56 +02:00
Marc-André Moreau
a700d1d02d
Merge pull request #2716 from realjiangms/shadow_xor_pointer
...
server/shadow: Fix alpha pointer message so that it allows pixel with both 'xor' and 'and'
2015-08-27 10:20:18 -04:00
Marc-André Moreau
97c38e7d8c
Merge pull request #2739 from realjiangms/shadow_resize
...
server/shadow: Enhancement regarding the screen and resolution - addresize support and fix subRect feature
2015-08-27 10:19:25 -04:00
Marc-André Moreau
fdac05b967
Merge pull request #2798 from psumbera/master
...
This array is so big that it eats whole stack for the thread and makes
2015-08-27 10:15:29 -04:00
Marc-André Moreau
e1e4d2ae98
Merge pull request #2827 from HenryJacques/winpr_cleanup
...
Remove unused variable in RegQueryValueExA()
2015-08-27 10:11:50 -04:00
Marc-André Moreau
90b7d42429
Merge pull request #2838 from akallabeth/smartcard_no_readers
...
Added return value checks for smartcard functions.
2015-08-27 10:05:23 -04:00