Commit Graph

8 Commits

Author SHA1 Message Date
Frediano Ziglio
011d60e628 Fix include syntax
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2016-09-01 15:45:17 +01:00
Victor Toso
8ae139f363 vdagent: remove whitespaces
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2016-08-12 09:41:41 +01:00
Sameeh Jubran
107b351795 Fixing buffer overflow when reloading wallpaper
The function "SystemParametersInfo" expects the size of the
buffer in characters. When wchar is used instead of char - two
bytes instead of one byte per character -, then "sizeof" returns wrong
number of characters (twice as much). A suitable solution would be to use
SPICE_N_ELEMENTS.

Based on patch by Sandy Stutsman <sstutsma@redhat.com>

Signed-off-by: Dmitry Fleytman <dfleytma@redhat.com>
Signed-off-by: Sameeh Jubran <sameeh@daynix.com>
2016-08-01 14:23:28 +02:00
Marc-André Lureau
ad61eec961 Fix cast BOOL->PVOID warning
vdagent/display_setting.cpp:469:50: warning: cast to pointer from
integer of different size [-Wint-to-pointer-cast]
     if (!SystemParametersInfo(action, 0, (PVOID)param, 0)) {
2013-07-17 20:52:17 +02:00
Christophe Fergeau
a8b47ea653 mingw: remove unused variable 2012-03-01 12:58:29 +01:00
Christophe Fergeau
9d1586c1dd mingw: fix header case
linux systems need it in lower-case, Windows systems shouldn't
care.
2012-03-01 12:58:29 +01:00
Christophe Fergeau
df3fe9cb90 mingw: fix format string warnings
Most of them are caused by not using %lu to print a DWORD (which
is an unsigned long).
2012-02-23 19:03:25 +01:00
Yonit Halperin
5833dc9760 Controlling Windows display settings (e.g., wallpaper, UI effects and font smoothing)
The configuration is received from Spice client.
The main usage of this option is for disabling display features in order to accelerate Spice performance over limited network connections.
2010-08-24 10:36:05 +03:00